Class: ECCSV::FieldNode
- Inherits:
-
ParentNode
- Object
- Node
- ParentNode
- ECCSV::FieldNode
- Defined in:
- lib/eccsv/node.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from ParentNode
Methods inherited from Node
Constructor Details
This class inherits a constructor from ECCSV::ParentNode
Instance Method Details
#value ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/eccsv/node.rb', line 32 def value @value ||= if @children[0].token == :TEXT @children[0].value else # quoted text @children[1].value end end |