instance_variable_names()
Instance Public methods
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"]
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"]
Please login to continue.