Module: Clustr::Message
- Defined in:
- lib/clustr.rb
Overview
Provides classes with the ability to store messages for consumption elsewhere within the application. Typically via the CLI.
Instance Attribute Summary collapse
-
#message_proc ⇒ Object
readonly
Returns the value of attribute message_proc.
Instance Method Summary collapse
-
#message_handler(&message_proc) ⇒ Object
Binds a message handler to proc a block when a message is added to the messages array.
Instance Attribute Details
#message_proc ⇒ Object (readonly)
Returns the value of attribute message_proc.
33 34 35 |
# File 'lib/clustr.rb', line 33 def @message_proc end |
Instance Method Details
#message_handler(&message_proc) ⇒ Object
Binds a message handler to proc a block when a message is added to the messages array.
39 40 41 |
# File 'lib/clustr.rb', line 39 def (&) @message_proc = end |