Class: ECCSV::Node
- Inherits:
-
Object
- Object
- ECCSV::Node
- Defined in:
- lib/eccsv/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = "", token = nil, line = nil, col = nil) ⇒ Node
constructor
A new instance of Node.
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
#col ⇒ Object (readonly)
Returns the value of attribute col.
3 4 5 |
# File 'lib/eccsv/node.rb', line 3 def col @col end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/eccsv/node.rb', line 3 def line @line end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/eccsv/node.rb', line 3 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/eccsv/node.rb', line 3 def value @value end |