module Monkey::Ext::Module
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/monkey/ext/module.rb, line 17 def method_missing(name, *args, &block) if respond_to? :parent and parent.respond_to? :nested_method_missing parent.nested_method_missing(self, name, *args, &block) else method_missing_without_nesting(name, *args, &block) end end
nested_method_missing(mod, name, *args, &block)
click to toggle source
# 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