Class: Logue::LineMsgBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/logue/lines/line_msg_block.rb

Instance Method Summary collapse

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_stringObject



8
9
10
# File 'lib/logue/lines/line_msg_block.rb', line 8

def message_string
  @msg.to_s + ": " + @blk.call.to_s
end