Module: ChainOfResponsibility::ClassMethods
- Defined in:
- lib/chain_of_responsibility.rb
Instance Method Summary collapse
Instance Method Details
#def_handler(handler) ⇒ Object
15 16 17 |
# File 'lib/chain_of_responsibility.rb', line 15 def def_handler(handler) handlers << handler end |
#handlers ⇒ Object
11 12 13 |
# File 'lib/chain_of_responsibility.rb', line 11 def handlers @handler ||= [] end |