module Acting::Cast
Private Instance Methods
__inject_methods__(methods)
click to toggle source
# File lib/acting.rb, line 31 def __inject_methods__(methods) methods.each do |method| __injected_methods__[method.name] << method end end
__injected_methods__()
click to toggle source
# File lib/acting.rb, line 43 def __injected_methods__ @__injected_methods__ ||= Hash.new do |hash, key| hash[key] = [] end end
__remove_methods__(methods)
click to toggle source
# File lib/acting.rb, line 37 def __remove_methods__(methods) methods.each do |method| __injected_methods__[method.name].pop end end
method_missing(meth, *args, &blk)
click to toggle source
Calls superclass method
# File lib/acting.rb, line 49 def method_missing(meth, *args, &blk) method = __injected_methods__[meth].last if method method.bind(self).call(*args) else super end end