Method: Monkey::Ext::Module#nested_method_missing

Defined in:
lib/monkey/ext/module.rb

#nested_method_missing(mod, name, *args, &block) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/monkey/ext/module.rb', line 7

def nested_method_missing(mod, name, *args, &block)
  Monkey.invisible __FILE__ do
    if respond_to? :parent and parent != self
      parent.send(:nested_method_missing, mod, name, *args, &block)
    else
      mod.send(:method_missing_without_nesting, name, *args) 
    end
  end
end