Guest User

Untitled

a guest
Oct 2nd, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.14 KB | None | 0 0
  1. class Dupa
  2.     attr_reader :a
  3.     def initialize
  4.         @a = 0
  5.     end
  6. end
  7.  
  8. kupa = Dupa.new
  9.  
  10. puts "before", kupa.a
  11. kupa.a += 1
  12. puts "after", kupa.a
Advertisement
Add Comment
Please, Sign In to add comment