Class: ECCSV::RootNode

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



91
92
93
94
95
96
97
98
99
# File 'lib/eccsv/node.rb', line 91

def value
  if @value.nil?
    @value = @children[0].value
    if @children[1]
      @value += [@children[1].value]
    end
  end
  @value
end