Class: Logue::EnumerableElement
- Inherits:
-
Element
- Object
- BaseElement
- Element
- Logue::EnumerableElement
- Defined in:
- lib/logue/elements/enum_element.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Element
Attributes inherited from BaseElement
Instance Method Summary collapse
Methods inherited from Element
Methods inherited from BaseElement
#initialize, #write_line, #write_msg_object
Constructor Details
This class inherits a constructor from Logue::Element
Instance Method Details
#write_enumerator(enum) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/logue/elements/enum_element.rb', line 5 def write_enumerator enum enum.each do |field, value| newmsg = "#{@msg}[#{field}]" write_msg_object newmsg, value end end |