daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Person
  2.   def initialize(name)
  3.     @name = name
  4.   end
  5.  
  6.   def name
  7.     @name
  8.   end
  9.  
  10.   def hello
  11.     print("Hello")
  12.   end
  13.  
  14. end
  15.  
  16. p = Person.new("Claudemiro")
  17. print(p.name) # this is fast
  18. # => Claudemiro
  19. p.hello # but this take so long
  20. # => Hello
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