From: Dave Thomas Date: 2003-04-09T05:44:44+09:00 Subject: Re: instance_variable_set question On Tuesday, April 8, 2003, at 03:12 PM, Chris Pine wrote: > Hello, > > Is this how this is supposed to work? > > > irb(main):001:0> class Foo; end > => nil > irb(main):002:0> foo = Foo.new > => # > irb(main):003:0> foo.instance_variable_set :bar, 15 > NameError: `bar' is not an instance variable name > from (irb):3:in `instance_variable_set' > from (irb):3 > But the instance variable would be called :@bar :)