Class: ECCSV::DelimFieldsNode

Inherits:
ParentNode show all
Defined in:
lib/eccsv/node.rb

Instance Attribute Summary

Attributes inherited from Node

#col, #line, #token

Instance Method Summary collapse

Methods inherited from ParentNode

#initialize

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from ECCSV::ParentNode

Instance Method Details

#valueObject



50
51
52
53
54
55
56
57
# File 'lib/eccsv/node.rb', line 50

def value
  @value ||=
    if @children.empty?
      []
    else
      @children[0].value + [@children[1].value]
    end
end