Method: Rustic::Hooks#with_hooks
- Defined in:
- lib/rustic/hooks.rb
#with_hooks(arg = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rustic/hooks.rb', line 9 def with_hooks(arg = nil) raise ArgumentError unless block_given? @before&.call(arg) yield @after&.call(arg) end |