Hi:
Can someone explain why Base.in_C does not see the in_C function.
cat test.rb
#! /usr/local/bin/ruby
module A
module B
module C
def in_C
puts "in_C"
end#in_C
end# module C
class Base
include C
def initialize
in_C()
end#initialize
def Base.in_C
C::in_C()
end#Base.in_C
end# class Base
end# module B
end# module A
include A::B
b = Base.new
b.extend(C)
b.in_C
Base.in_C # <= why does this not see C::in_C?
./test.rb
in_C
in_C
./test.rb:17:in `in_C': undefined method `in_C' for A::B::C:Module
(NameError)
from ./test.rb:28
Thanks
=========================================================
Jim Freeze
jim / freeze.org
---------------------------------------------------------
Today is a fine day for Ruby programming.
http://www.freeze.org
=========================================================