Module: AroundTheWorld::ClassMethods
- Defined in:
- lib/around_the_world.rb
Instance Method Summary collapse
-
#around_method(*method_names, prevent_double_wrapping_for: nil, allow_undefined_method: false, &block) ⇒ Object
protected
Defines a method that gets called
aroundthe given instance method.
Instance Method Details
#around_method(*method_names, prevent_double_wrapping_for: nil, allow_undefined_method: false, &block) ⇒ Object (protected)
Defines a method that gets called around the given instance method.
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/around_the_world.rb', line 84 def around_method(*method_names, prevent_double_wrapping_for: nil, allow_undefined_method: false, &block) method_names.each do |method_name| MethodWrapper.wrap( method_name: method_name, target: self, prevent_double_wrapping_for: prevent_double_wrapping_for, allow_undefined_method: allow_undefined_method, &block ) end end |