ruby spec instance variable code example
Example: ruby get instance variables without accessor
foo.instance_variable_set(:@foo, 12)
puts foo.instance_variable_get(:@foo)
foo.instance_variable_set(:@foo, 12)
puts foo.instance_variable_get(:@foo)