Method: PropCheck::Hooks#call
- Defined in:
- lib/prop_check/hooks.rb
#call(*args, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Wraps a block with all hooks that were configured this far, and immediately calls it using the given ‘*args`.
See also #wrap_block
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/prop_check/hooks.rb', line 48 def call(*args, &block) begin @before.call() @around.call do block.call(*args) end ensure @after.call() end end |