class ECCSV::ParentNode

Public Class Methods

new(children = [], line = nil, col = nil) click to toggle source
Calls superclass method ECCSV::Node::new
# File lib/eccsv/node.rb, line 14
def initialize(children = [], line = nil, col = nil)
  last = children.last
  if last && last.is_a?(Node)
    line = last.line
    col = last.col
  end
  super(nil, nil, line, col)
  @children = children
end