Module: AroundTheWorld::ClassMethods
- Defined in:
- lib/around_the_world.rb
Instance Method Summary collapse
-
#around_method(method_name, prevent_double_wrapping_for: nil, &block) ⇒ Object
protected
Defines a method that gets called
around
the given instance method.
Instance Method Details
#around_method(method_name, prevent_double_wrapping_for: nil, &block) ⇒ Object (protected)
Defines a method that gets called around
the given instance method.
81 82 83 84 85 86 87 88 |
# File 'lib/around_the_world.rb', line 81 def around_method(method_name, prevent_double_wrapping_for: nil, &block) MethodWrapper.wrap( method_name: method_name, target: self, prevent_double_wrapping_for: prevent_double_wrapping_for, &block ) end |