Class: Logue::Element
- Inherits:
-
Object
- Object
- Logue::Element
- Defined in:
- lib/logue/element.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ Element
constructor
A new instance of Element.
- #write(output = $stdout) ⇒ Object
Constructor Details
#initialize(object) ⇒ Element
Returns a new instance of Element.
8 9 10 |
# File 'lib/logue/element.rb', line 8 def initialize object @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
6 7 8 |
# File 'lib/logue/element.rb', line 6 def object @object end |
Instance Method Details
#write(output = $stdout) ⇒ Object
12 13 14 |
# File 'lib/logue/element.rb', line 12 def write output = $stdout output.print @object.to_s end |