Class: MarshalParser::Lexer::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/marshal-parser/lexer.rb

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



40
41
42
# File 'lib/marshal-parser/lexer.rb', line 40

def id
  @id
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



40
41
42
# File 'lib/marshal-parser/lexer.rb', line 40

def index
  @index
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



40
41
42
# File 'lib/marshal-parser/lexer.rb', line 40

def length
  @length
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



40
41
42
# File 'lib/marshal-parser/lexer.rb', line 40

def value
  @value
end