Method: Aruba::BasicConfiguration#after
- Defined in:
- lib/aruba/basic_configuration.rb
#after(name) { ... } ⇒ Object
Define after-hook
146 147 148 149 150 151 152 153 |
# File 'lib/aruba/basic_configuration.rb', line 146 def after(name, &block) name = format('%s_%s', 'after_', name.to_s).to_sym raise ArgumentError, 'A block is required' unless block @hooks.append(name, block) self end |