123456789_123456789_123456789_123456789_123456789_

Class: YARD::Parser::Ruby::Legacy::RubyToken::TkUnknownChar

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Token
Instance Chain:
self, Token
Inherits: YARD::Parser::Ruby::Legacy::RubyToken::Token
Defined in: lib/yard/parser/ruby/legacy/ruby_lex.rb

Constant Summary

Token - Inherited

NO_TEXT

Class Method Summary

Token - Inherited

.new

Creates a new Token object.

Instance Attribute Summary

Token - Inherited

Instance Method Summary

Token - Inherited

#set_text

Chainable way to sets the text attribute.

Constructor Details

.new(line_no, char_no, _id) ⇒ TkUnknownChar

[ GitHub ]

  
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 108

def initialize(line_no, char_no, _id)
  super(line_no, char_no)
  @name = char_no > 255 ? '?' : char_no.chr
end

Instance Attribute Details

#name (readonly)

[ GitHub ]

  
# File 'lib/yard/parser/ruby/legacy/ruby_lex.rb', line 112

attr :name