Method: RDoc::Servlet#documentation_source

Defined in:
lib/rdoc/servlet.rb

#documentation_source(path) ⇒ Object

Returns the RDoc::Store and path relative to mount_path for documentation at path.



185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/rdoc/servlet.rb', line 185

def documentation_source path
  _, source_name, path = path.split '/', 3

  store = @stores[source_name]
  return store, path if store

  store = store_for source_name

  store.load_all

  @stores[source_name] = store

  return store, path
end