Class: Sass::Script::Lexer::Token

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



29
30
31
# File 'lib/sass/script/lexer.rb', line 29

def line
  @line
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



29
30
31
# File 'lib/sass/script/lexer.rb', line 29

def offset
  @offset
end

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



29
30
31
# File 'lib/sass/script/lexer.rb', line 29

def pos
  @pos
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



29
30
31
# File 'lib/sass/script/lexer.rb', line 29

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



29
30
31
# File 'lib/sass/script/lexer.rb', line 29

def value
  @value
end