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.



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

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



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

def file
  @file
end

#nameObject (readonly)

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



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

def name
  @name
end

#storeObject (readonly)

The store the file should exist in



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

def store
  @store
end

Instance Method Details

#messageObject

:nodoc:



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

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