Xavier Noria wrote in post #1122837:

>
> 4. Call const_missing if implemented (this is a method lookup, could be
> inherited).
>
> Let's suppose it was not found.

Hope this is what you told in step - 4 right?

module A
  module B
    module C
      def self.const_missing(name)
        p name,14
      end
      X
      $a = Module.nesting
      $b = ancestors
    end
  end
end
$a # => [A::B::C, A::B, A]
$b # => [A::B::C]

# >> :X
# >> 14

If not,please give one good example. :)

-- 
Posted via http://www.ruby-forum.com/.