Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class Tmp
  2. def hello
  3. @random = Random.rand(100)
  4. puts "hello #{@random}"
  5. end
  6.  
  7. def world
  8. puts "hello #{@random}"
  9. end
  10. end
  11.  
  12. tmp = Tmp.new
  13. tmp.hello
  14. tmp.world
  15.  
  16. tmp2 = Tmp.new
  17. tmp2.hello
  18. tmp2.world
  19.  
  20.  
  21. ##################################################
  22. # <===================OUTPUT===================> #
  23. # hello 37 #
  24. # hello 37 #
  25. # hello 82 #
  26. # hello 82 #
  27. ##################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement