instance_variable_names()
public
Returns an array of instance variable names as strings including “@”.
class C def initialize(x, y) @x, @y = x, y end end C.new(0, 1).instance_variable_names # => ["@y", "@x"]
instance_variable_names()
public
Returns an array of instance variable names as strings including “@”.
class C def initialize(x, y) @x, @y = x, y end end C.new(0, 1).instance_variable_names # => ["@y", "@x"]