Skip to content

Instantly share code, notes, and snippets.

@acook
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save acook/02567c93d3eb4b0e6b73 to your computer and use it in GitHub Desktop.

Select an option

Save acook/02567c93d3eb4b0e6b73 to your computer and use it in GitHub Desktop.
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 }
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