Skip to content

Instantly share code, notes, and snippets.

@nickpegg
Created June 19, 2015 23:58
Show Gist options
  • Save nickpegg/5893a2c6cdcbb5930c29 to your computer and use it in GitHub Desktop.
Save nickpegg/5893a2c6cdcbb5930c29 to your computer and use it in GitHub Desktop.
irb(main):001:0> foo = 'hi there'
=> "hi there"
irb(main):002:0> thing = :"#{foo}"
=> :"hi there"
irb(main):003:0> thing
=> :"hi there"
irb(main):004:0> foo = 'hi_there'
=> "hi_there"
irb(main):005:0> thing = :"#{foo}"
=> :hi_there
irb(main):006:0> thing
=> :hi_there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment