diff options
-rw-r--r-- | lib/forwardable.rb | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -102,6 +102,8 @@ module Forwardable # Version of +forwardable.rb+ FORWARDABLE_VERSION = "1.1.0" @debug = nil class << self # If true, <tt>__FILE__</tt> will remain in the backtrace in the event an @@ -170,7 +172,7 @@ module Forwardable begin #{accessor}.__send__(:#{method}, *args, &block) rescue Exception - [email protected]_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug ::Kernel::raise end end @@ -203,14 +205,14 @@ end # puts "serviced!" # end # end -# # module Facade # extend SingleForwardable # def_delegator :Implementation, :service # end # # Facade.service #=> serviced! -# # If you want to use both Forwardable and SingleForwardable, you can # use methods def_instance_delegator and def_single_delegator, etc. module SingleForwardable @@ -262,7 +264,7 @@ module SingleForwardable begin #{accessor}.__send__(:#{method}, *args, &block) rescue Exception - [email protected]_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug ::Kernel::raise end end |