Class: RubyToken::TkUnknownChar

Inherits:
Token
  • Object
show all
Defined in:
lib/rdoc-f95/parsers/parse_rb.rb

Constant Summary

Constants inherited from Token

RubyToken::Token::NO_TEXT

Instance Attribute Summary collapse

Attributes inherited from Token

#char_no, #line_no, #text

Instance Method Summary collapse

Methods inherited from Token

#set_text

Constructor Details

#initialize(line_no, char_no, id) ⇒ TkUnknownChar

Returns a new instance of TkUnknownChar.


97
98
99
100
# File 'lib/rdoc-f95/parsers/parse_rb.rb', line 97

def initialize(line_no, char_no, id)
  super(line_no, char_no)
  @name = char_no.chr
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


101
102
103
# File 'lib/rdoc-f95/parsers/parse_rb.rb', line 101

def name
  @name
end