Skip to content

Instantly share code, notes, and snippets.

@ato
Created March 26, 2012 07:05
Show Gist options
  • Save ato/2203585 to your computer and use it in GitHub Desktop.
Save ato/2203585 to your computer and use it in GitHub Desktop.
irb(main):010:0> (40
irb(main):011:1> + 40)
=> 40
irb(main):012:0> ("foo"
irb(main):013:1> + "baz")
NoMethodError: undefined method `+@' for "baz":String
from (irb):13
from :0
irb(main):014:0> ("foo" +
irb(main):015:1* "baz")
=> "foobaz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment