Class: Logue::LineMsgBlock
- Inherits:
-
Object
- Object
- Logue::LineMsgBlock
- Defined in:
- lib/logue/lines/line_msg_block.rb
Instance Method Summary collapse
-
#initialize(msg, blk) ⇒ LineMsgBlock
constructor
A new instance of LineMsgBlock.
- #message_string ⇒ Object
Constructor Details
#initialize(msg, blk) ⇒ LineMsgBlock
Returns a new instance of LineMsgBlock.
3 4 5 6 |
# File 'lib/logue/lines/line_msg_block.rb', line 3 def initialize msg, blk @msg = msg @blk = blk end |
Instance Method Details
#message_string ⇒ Object
8 9 10 |
# File 'lib/logue/lines/line_msg_block.rb', line 8 def @msg.to_s + ": " + @blk.call.to_s end |