Class: Parser::Tokenline

Inherits:
Struct
  • Object
show all
Defined in:
lib/parser/comment.rb

Overview

Together with Comment it acts as an Interface between Parser and CodeObject. Parser::Comment creates instances of Tokenline, which are then analysed by Token::Container#process_token

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



12
13
14
# File 'lib/parser/comment.rb', line 12

def content
  @content
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



12
13
14
# File 'lib/parser/comment.rb', line 12

def token
  @token
end