Class: Tokenzr::Token
- Inherits:
-
Object
- Object
- Tokenzr::Token
- Defined in:
- lib/tokenzr.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(content = nil, type = nil, line = nil, column = nil) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(content = nil, type = nil, line = nil, column = nil) ⇒ Token
Returns a new instance of Token.
14 15 16 17 18 19 |
# File 'lib/tokenzr.rb', line 14 def initialize(content = nil, type = nil, line = nil, column = nil) @content = content @type = type @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
12 13 14 |
# File 'lib/tokenzr.rb', line 12 def column @column end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
12 13 14 |
# File 'lib/tokenzr.rb', line 12 def content @content end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
12 13 14 |
# File 'lib/tokenzr.rb', line 12 def line @line end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/tokenzr.rb', line 12 def type @type end |