Skip to content

Instantly share code, notes, and snippets.

@jjthrash
Last active December 11, 2015 06:08
Show Gist options
  • Select an option

  • Save jjthrash/4557209 to your computer and use it in GitHub Desktop.

Select an option

Save jjthrash/4557209 to your computer and use it in GitHub Desktop.
Ruby here docs are funny
irb(main):001:0> def id(string)
irb(main):002:1> string
irb(main):003:1> end
=> nil
irb(main):004:0>
irb(main):005:0* id(<<END).to_i
irb(main):006:1" 314
irb(main):007:1" END
=> 314
NotificationMailer.generic_notification(<<-END).deliver
This is a message
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment