Created
January 17, 2017 17:03
-
-
Save jlindsey/c88aaa854877b72a248d8357b05c03c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo; end | |
Foo.define_singleton_method :"hello world", ->{ puts "Hello, world!" } | |
Foo.__send__ :"hello world" | |
# => Hello, world! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment