I had no idea...
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">
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...