Class: Code::Parser::Token

Inherits:
Data
  • Object
show all
Defined in:
lib/code/parser.rb

Instance Attribute Summary collapse

Instance Attribute Details

#newline_beforeObject (readonly)

Returns the value of attribute newline_before

Returns:

  • (Object)

    the current value of newline_before



11
12
13
# File 'lib/code/parser.rb', line 11

def newline_before
  @newline_before
end

#positionObject (readonly)

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



11
12
13
# File 'lib/code/parser.rb', line 11

def position
  @position
end

#space_beforeObject (readonly)

Returns the value of attribute space_before

Returns:

  • (Object)

    the current value of space_before



11
12
13
# File 'lib/code/parser.rb', line 11

def space_before
  @space_before
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



11
12
13
# File 'lib/code/parser.rb', line 11

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/code/parser.rb', line 11

def value
  @value
end