Posted By

kungfoo on 08/18/09


Tagged

ruby


Versions (?)

Property Access in Ruby


 / Published in: Ruby
 

  1. class Foo
  2. def initialize
  3. @bar
  4. end
  5.  
  6. def bar=(bar)
  7. @bar = bar
  8. end
  9. end

Report this snippet  

You need to login to post a comment.