Exception: RDoc::Store::MissingFileError

Inherits:
Error
  • Object
show all
Defined in:
lib/rdoc/store.rb

Overview

Raised when a stored file for a class, module, page or method is missing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(store, file, name) ⇒ MissingFileError

Creates a new MissingFileError for the missing file for the given name that should have been in the store.



56
57
58
59
60
# File 'lib/rdoc/store.rb', line 56

def initialize store, file, name
  @store = store
  @file  = file
  @name  = name
end

Instance Attribute Details

#fileObject (readonly)

The file the #name should be saved as



45
46
47
# File 'lib/rdoc/store.rb', line 45

def file
  @file
end

#nameObject (readonly)

The name of the object the #file would be loaded from



50
51
52
# File 'lib/rdoc/store.rb', line 50

def name
  @name
end

#storeObject (readonly)

The store the file should exist in



40
41
42
# File 'lib/rdoc/store.rb', line 40

def store
  @store
end

Instance Method Details

#messageObject

:nodoc:



62
63
64
# File 'lib/rdoc/store.rb', line 62

def message # :nodoc:
  "store at #{@store.path} missing file #{@file} for #{@name}"
end