Class: Rjq::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/rjq/lexer.rb

Instance Attribute Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def column
  @column
end

#end_offsetObject

Returns the value of attribute end_offset

Returns:

  • (Object)

    the current value of end_offset



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def end_offset
  @end_offset
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def filename
  @filename
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def line
  @line
end

#start_offsetObject

Returns the value of attribute start_offset

Returns:

  • (Object)

    the current value of start_offset



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def start_offset
  @start_offset
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



4
5
6
# File 'lib/rjq/lexer.rb', line 4

def value
  @value
end