Skip to content

Instantly share code, notes, and snippets.

@bakineggs
Created July 2, 2010 01:17
Show Gist options
  • Select an option

  • Save bakineggs/460785 to your computer and use it in GitHub Desktop.

Select an option

Save bakineggs/460785 to your computer and use it in GitHub Desktop.
str = 'pol'
eval <<-EOS
class Foo
def self.bar
"some inter#{str}ated string"
end
end
EOS
# works, but i lose my syntax highlighting in vim. oh well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment