Say, I've got a class definition,
class A; a = 1; end
How could get the value of 'a' outside of A?
I've tried:
eval 'p a', A.send(:binding)
failed, said:
NameError: undefined local variable or method `a' for A:Class
from (irb):2:in `send'
from (irb):2
from :0