Class: ECCSV::Node

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

Direct Known Subclasses

ParentNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = "", token = nil, line = nil, col = nil) ⇒ Node



5
6
7
8
9
10
# File 'lib/eccsv/node.rb', line 5

def initialize(value = "", token = nil, line = nil, col = nil)
  @value = value
  @token = token
  @line = line
  @col = col
end

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col.



3
4
5
# File 'lib/eccsv/node.rb', line 3

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



3
4
5
# File 'lib/eccsv/node.rb', line 3

def line
  @line
end

#tokenObject (readonly)

Returns the value of attribute token.



3
4
5
# File 'lib/eccsv/node.rb', line 3

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/eccsv/node.rb', line 3

def value
  @value
end