simplify: remove distinction between #method_missing and #proxy_method

This commit is contained in:
Marc Siegel 2013-07-25 10:56:54 -04:00
parent 38d2e41de5
commit a94fa69889
1 changed files with 0 additions and 4 deletions

View File

@ -24,10 +24,6 @@ module Docile
end
def method_missing(method, *args, &block)
__proxy_method__(method, *args, &block)
end
def __proxy_method__(method, *args, &block)
@__receiver__.__send__(method.to_sym, *args, &block)
rescue ::NoMethodError => e
@__fallback__.__send__(method.to_sym, *args, &block)