Class: Opencdd::Cddal::Token
- Inherits:
-
Struct
- Object
- Struct
- Opencdd::Cddal::Token
- Defined in:
- lib/opencdd/cddal/lexer.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#line ⇒ Object
Returns the value of attribute line.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
7 8 9 |
# File 'lib/opencdd/cddal/lexer.rb', line 7 def column @column end |
#kind ⇒ Object
Returns the value of attribute kind
7 8 9 |
# File 'lib/opencdd/cddal/lexer.rb', line 7 def kind @kind end |
#line ⇒ Object
Returns the value of attribute line
7 8 9 |
# File 'lib/opencdd/cddal/lexer.rb', line 7 def line @line end |
#value ⇒ Object
Returns the value of attribute value
7 8 9 |
# File 'lib/opencdd/cddal/lexer.rb', line 7 def value @value end |
Instance Method Details
#inspect ⇒ Object
8 9 10 |
# File 'lib/opencdd/cddal/lexer.rb', line 8 def inspect "#{kind}#{value && !value.empty? ? "(#{value.inspect})" : ""}@#{line}:#{column}" end |