Exception: RDoc::RI::Driver::NotFoundError
- Defined in:
- lib/rdoc/ri/driver.rb
Overview
Raised when a name isn’t found in the ri data stores
Instance Method Summary collapse
-
#initialize(klass, suggestion_proc = nil) ⇒ NotFoundError
constructor
:nodoc:.
-
#message ⇒ Object
:nodoc:.
-
#name ⇒ Object
Name that wasn’t found.
Constructor Details
#initialize(klass, suggestion_proc = nil) ⇒ NotFoundError
:nodoc:
37 38 39 40 |
# 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 ⇒ Object
:nodoc:
49 50 51 52 53 54 55 56 |
# 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 ⇒ Object
Name that wasn’t found
45 46 47 |
# File 'lib/rdoc/ri/driver.rb', line 45 def name @klass end |