Class: TRuby::Scanner::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/t_ruby/scanner.rb

Overview

토큰 구조체

Instance Attribute Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def column
  @column
end

#end_posObject

Returns the value of attribute end_pos

Returns:

  • (Object)

    the current value of end_pos



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def end_pos
  @end_pos
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def line
  @line
end

#start_posObject

Returns the value of attribute start_pos

Returns:

  • (Object)

    the current value of start_pos



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def start_pos
  @start_pos
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/t_ruby/scanner.rb', line 8

def value
  @value
end