Class: YARD::Parser::Ruby::Legacy::RubyToken::Token
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/yard/parser/ruby/legacy/ruby_lex.rb |
Overview
Represents a token in the ::YARD::Parser::Ruby
lexer
Constant Summary
-
NO_TEXT =
Internal use only
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 32"??".freeze
Class Method Summary
-
.new(line_no, char_no) ⇒ Token
constructor
Creates a new
Token
object.
Instance Attribute Summary
- #char_no ⇒ Integer readonly
- #lex_state ⇒ Symbol rw
- #line_no ⇒ Integer readonly
- #text ⇒ String readonly
Instance Method Summary
-
#set_text(text) ⇒ Token
Chainable way to sets the text attribute.
Constructor Details
.new(line_no, char_no) ⇒ Token
Creates a new Token
object
Instance Attribute Details
#char_no ⇒ Integer
(readonly)
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 23
attr_reader :char_no
#lex_state ⇒ Symbol
(rw)
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 29
attr_accessor :lex_state
#line_no ⇒ Integer
(readonly)
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 19
attr_reader :line_no
#text ⇒ String (readonly)
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 26
attr_reader :text
Instance Method Details
#set_text(text) ⇒ Token
Chainable way to sets the text attribute