-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Define options with squiggly heredocs literals * Use case expressions to reduce attribute lookups * DRY repetitions with local variable assignments * Test for truthy instead of negating nil-check * Create regex from list of items with Regexp.union * Use attr_reader to define trivial reader methods * Use whitespace to improve readability * initialize hard_line_break just once per instance * Improve readability of conditional expression * check if last line is empty first * No point in pushing an empty substring * extract complex conditional body to private method * Avoid unnecessary array allocations * Freeze mutable constants
- Loading branch information
Showing
2 changed files
with
108 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters