Module: ProconBypassMan::CallbacksRegisterable
- Included in:
- Bypass::ProconToSwitch
- Defined in:
- lib/procon_bypass_man/support/callbacks.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
Instance Method Summary collapse
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
5 6 7 |
# File 'lib/procon_bypass_man/support/callbacks.rb', line 5 def callbacks @callbacks end |
Instance Method Details
#register_callback_module(mod) ⇒ Object
7 8 9 10 11 |
# File 'lib/procon_bypass_man/support/callbacks.rb', line 7 def register_callback_module(mod) self.callbacks ||= [] callbacks << mod self.include(mod) end |