How Ruby

Hi –

On Tue, 13 Jan 2009, Sebastian H. wrote:

end
end

a = A.new
a.foo

a.instance_variable_get(:@foo)

I wouldn’t call that accessing it “directly” though :slight_smile:

David


David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (The Well-Grounded Rubyist)

http://www.wishsight.com => Independent, social wishlist management!

Martin DeMello wrote:

end

a = A.new
a.foo

a.instance_variable_get(:@foo)