Exception: RDoc::RI::Driver::NotFoundError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
RDoc::RI::Driver::Error
|
Defined in: | lib/rdoc/ri/driver.rb |
Overview
Raised when a name isn’t found in the ri data stores
Class Method Summary
- .new(klass, suggestion_proc = nil) ⇒ NotFoundError constructor Internal use only
Instance Method Summary
Constructor Details
.new(klass, suggestion_proc = nil) ⇒ NotFoundError
This method is for internal use only.
# File 'lib/rdoc/ri/driver.rb', line 37
def initialize(klass, suggestion_proc = nil) # :nodoc: @klass = klass @suggestion_proc = suggestion_proc end
Instance Method Details
#message
This method is for internal use only.
[ GitHub ]
# File 'lib/rdoc/ri/driver.rb', line 49
def # :nodoc: str = "Nothing known about #{@klass}" suggestions = @suggestion_proc&.call if suggestions and !suggestions.empty? str += "\nDid you mean? #{suggestions.join("\n ")}" end str end
#name
Name that wasn’t found
# File 'lib/rdoc/ri/driver.rb', line 45
def name @klass end