Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Joon
- def self.method_one
- new
- end
- def method_two
- self
- end
- def method_three
- puts "from method three"
- end
- end
- Joon.method_one.method_two.method_three
- a = Joon.new
- a.instance_eval "method_two.method_three"
Add Comment
Please, Sign In to add comment