Guest User

Untitled

a guest
Aug 10th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class Joon
  2. def self.method_one
  3. new
  4. end
  5.  
  6. def method_two
  7. self
  8. end
  9.  
  10. def method_three
  11. puts "from method three"
  12. end
  13. end
  14.  
  15. Joon.method_one.method_two.method_three
  16. a = Joon.new
  17. a.instance_eval "method_two.method_three"
Add Comment
Please, Sign In to add comment