Subject: what is super?
From: "trans. (T. Onoma)" <transami runbox.com>
Date: Thu, 7 Oct 2004 01:02:51 +0900
I ask b/c I was wondering if getting the binding of super is any way feasible.
class C
def me
x = 1
end
end
class A < C
def me
b = Binding.of_super
puts b.eval "x"
end
end
A.new.me #=> 1
T.