Class: Logue::Element

Inherits:
BaseElement show all
Defined in:
lib/logue/elements/element.rb

Instance Attribute Summary collapse

Attributes inherited from BaseElement

#context, #writer

Instance Method Summary collapse

Methods inherited from BaseElement

#write_line, #write_msg_object

Constructor Details

#initialize(msg, object, context, writer) ⇒ Element



7
8
9
10
11
# File 'lib/logue/elements/element.rb', line 7

def initialize msg, object, context, writer
  super context, writer
  @msg = msg
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



5
6
7
# File 'lib/logue/elements/element.rb', line 5

def object
  @object
end