I had no idea...

written about about 1 year ago |
0 comments

From the projectionist...


  class Foo
      attr_writer :bar
  end

  f = Foo.new

  %w(one two three).each do |f.bar| 
      p f
  end
  #<Foo:0x4369c @bar="one">
  #<Foo:0x4369c @bar="two">
  #<Foo:0x4369c @bar="three">

Leave a comment...

formatting help...