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, suggestions = nil) ⇒ NotFoundError
constructor
:nodoc:.
-
#message ⇒ Object
:nodoc:.
-
#name ⇒ Object
Name that wasn’t found.
Constructor Details
#initialize(klass, suggestions = nil) ⇒ NotFoundError
:nodoc:
50 51 52 53 |
# File 'lib/rdoc/ri/driver.rb', line 50 def initialize(klass, suggestions = nil) # :nodoc: @klass = klass @suggestions = suggestions end |
Instance Method Details
#message ⇒ Object
:nodoc:
62 63 64 65 66 67 68 |
# File 'lib/rdoc/ri/driver.rb', line 62 def # :nodoc: str = "Nothing known about #{@klass}" if @suggestions and !@suggestions.empty? str += "\nDid you mean? #{@suggestions.join("\n ")}" end str end |
#name ⇒ Object
Name that wasn’t found
58 59 60 |
# File 'lib/rdoc/ri/driver.rb', line 58 def name @klass end |