So I have this app
require \'tk\' class Foo def my_fancy_function puts \"hello, world!\" end def initialize @root = TkRoot.new{title \"Hello,
If you put a
p self
into the do ... end block of your code, then you'll probably find out that the current scope is different than your Foo object.
do ... end
Foo