Class: Sass::Script::Lexer::Token
- Inherits:
-
Struct
- Object
- Struct
- 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.
pos
: [Fixnum
]
: The scanner position at which the SassScript token appeared.
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#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
29 30 31 |
# File 'lib/sass/script/lexer.rb', line 29
def line
@line
end
|
#offset ⇒ Object
Returns the value of attribute offset
29 30 31 |
# File 'lib/sass/script/lexer.rb', line 29
def offset
@offset
end
|
#pos ⇒ Object
Returns the value of attribute pos
29 30 31 |
# File 'lib/sass/script/lexer.rb', line 29
def pos
@pos
end
|
#type ⇒ Object
Returns the value of attribute type
29 30 31 |
# File 'lib/sass/script/lexer.rb', line 29
def type
@type
end
|
#value ⇒ Object
Returns the value of attribute value
29 30 31 |
# File 'lib/sass/script/lexer.rb', line 29
def value
@value
end
|