Class: Sass::Script::Lexer::Token
- Defined in:
- lib/sass/script/lexer.rb
Overview
A struct containing information about an individual token.
‘type`: [Symbol] : The type of token.
‘value`: [Object] : The Ruby object corresponding to the value of the token.
‘line`: [Fixnum] : The line of the source file on which the token appears.
‘offset`: [Fixnum] : The number of bytes into the line the SassScript token appeared.
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
22 23 24 |
# File 'lib/sass/script/lexer.rb', line 22 def line @line end |
#offset ⇒ Object
Returns the value of attribute offset
22 23 24 |
# File 'lib/sass/script/lexer.rb', line 22 def offset @offset end |
#type ⇒ Object
Returns the value of attribute type
22 23 24 |
# File 'lib/sass/script/lexer.rb', line 22 def type @type end |
#value ⇒ Object
Returns the value of attribute value
22 23 24 |
# File 'lib/sass/script/lexer.rb', line 22 def value @value end |