Module: Pymn::ChainOfResponsibility::HasHandlers
- Included in:
- Factory::FactoryCommand
- Defined in:
- lib/pymn/chain_of_responsibility/has_handlers.rb
Instance Method Summary collapse
Instance Method Details
#add_handler(next_handler) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/pymn/chain_of_responsibility/has_handlers.rb', line 4 def add_handler(next_handler) if (@next_handler_in_chain) @next_handler_in_chain.add_handler(next_handler) else @next_handler_in_chain = next_handler end self end |