Skip to content

Instantly share code, notes, and snippets.

@zenhob
Created September 1, 2009 18:50
Show Gist options
  • Save zenhob/179299 to your computer and use it in GitHub Desktop.
Save zenhob/179299 to your computer and use it in GitHub Desktop.
# example of a method definition with a name that isn't an identifier
x = :'this is some crazy a$$ shit!'
self.class.send(:define_method, x) do
puts 'crazy!'
end
send x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment