Method: Xot::Hookable#before
- Defined in:
- lib/xot/hookable.rb
#before(name, &block) ⇒ Object
15 16 17 18 19 |
# File 'lib/xot/hookable.rb', line 15 def before(name, &block) hook name do |*a, **k, &b| super(*a, **k, &b) unless block.call(*a, **k, &b) == :skip end end |