Last active
August 29, 2015 14:01
-
-
Save acook/02567c93d3eb4b0e6b73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def prettifier things # since this code should exist in an object anyway, then use a damn method | |
| if ugly? then | |
| things.do_them | |
| else | |
| many_other_things.do_them_instead | |
| end | |
| end | |
| assign = prettifier things | |
| no_hanging = assign.map{|ugly| ugly.still_kinda_ugly_but_less.to_s } |
This file contains hidden or 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
| assign = if ugly? then | |
| things.do_them | |
| else | |
| many_other_things.do_them_instead | |
| end | |
| hanging = assign.map do |ugly| | |
| ugly.so_damn_ugly.to_s | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment