Often, we can use p foo or foo.inspect to see the instance variables, but is it only the default behavior and the object can choose to show somethi
p foo
foo.inspect
In Ruby, all access protection can be circumvented using reflection:
@bar.instance_variable_get(:@wah)