Exception: RDoc::RI::Driver::NotFoundError

Inherits:
Error show all
Defined in:
lib/rdoc/ri/driver.rb

Overview

Raised when a name isn’t found in the ri data stores

Instance Method Summary collapse

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

#messageObject

:nodoc:



62
63
64
65
66
67
68
# File 'lib/rdoc/ri/driver.rb', line 62

def message # :nodoc:
  str = "Nothing known about #{@klass}"
  if @suggestions and !@suggestions.empty?
    str += "\nDid you mean?  #{@suggestions.join("\n               ")}"
  end
  str
end

#nameObject

Name that wasn’t found



58
59
60
# File 'lib/rdoc/ri/driver.rb', line 58

def name
  @klass
end