From: Hal Fulton Date: 2011-07-14T10:03:45+09:00 Subject: Issue with: instance_variable_defined? --0016e6de00818ca64c04a7fd1a09 Content-Type: text/plain; charset=ISO-8859-1 I expect the third line to be true rather than false. Comments? Hal class SomeClass attr_reader :a1, :a2 # Creates @a1, a1, @a2, a2 attr_writer :b1, :b2 # Creates @b1, b1=, @b2, b2= attr_accessor :c1, :c2 # Creates @c1, c1, c1=, @c2, c2, c2= # ... def initialize @c2 = 99 end end obj = SomeClass.new p obj.instance_variable_defined?(:@c2) # true p obj.instance_variable_defined?(:@d2) # false p obj.instance_variable_defined?(:@a2) # false :-/ --0016e6de00818ca64c04a7fd1a09--