daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top