Method: Orator::Base::ClassMethods#before
- Defined in:
- lib/orator/base.rb
#before(method = nil, &block) ⇒ Object
This handles the before callbacks that our orator needs. It can accept a method or a block, and given the two, chooses the method over the block.
196 197 198 |
# File 'lib/orator/base.rb', line 196 def before(method = nil, &block) before_list << (method or block) end |