Class: Smeagol::Wiki

Inherits:
Gollum::Wiki show all
Defined in:
lib/smeagol/wiki.rb

Overview

TODO:

Techincailly this is probably not needed. Presently it only adds

one methods.

Subclass of Gollum::Wiki.

Instance Method Summary collapse

Methods inherited from Gollum::Wiki

#file_list, #files

Instance Method Details

#settingsObject

TODO:

Should settings be coming from current file or from repo version?

This can be tricky. Right now they come from current file, but
In future we probably need to split this into two config files.
One that comes from version and one that is current.
TODO:

This might be better in Controller instead.

The Smeagol wiki settings. These can be found in the _settings.yml file at the root of the repository. This method caches the settings for all subsequent calls.

Returns:

  • a Settings object.


30
31
32
# File 'lib/smeagol/wiki.rb', line 30

def settings
  @settings ||= Settings.load(path)
end