Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo; end
- Foo.define_singleton_method :"hello world", ->{ puts "Hello, world!" }
- Foo.__send__ :"hello world"
- # => Hello, world!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement