Class: Logue::Element
- Inherits:
-
BaseElement
- Object
- BaseElement
- Logue::Element
- Defined in:
- lib/logue/elements/element.rb
Direct Known Subclasses
EnumerableElement, MsgElement, MsgObjElement, VerboseElement
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Attributes inherited from BaseElement
Instance Method Summary collapse
-
#initialize(msg, object, context, writer) ⇒ Element
constructor
A new instance of Element.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
5 6 7 |
# File 'lib/logue/elements/element.rb', line 5 def object @object end |