Module: GollumRails::Setup::Options::ClassMethods
- Defined in:
- lib/gollum_rails/setup/options.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#repository ⇒ Object
Returns the value of attribute repository.
-
#startup ⇒ Object
Returns the value of attribute startup.
-
#wiki_options ⇒ Object
Reads out the wiki options.
-
#wiki_path ⇒ Object
Returns the value of attribute wiki_path.
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
21 22 23 |
# File 'lib/gollum_rails/setup/options.rb', line 21 def @options end |
#repository ⇒ Object
Returns the value of attribute repository.
19 20 21 |
# File 'lib/gollum_rails/setup/options.rb', line 19 def repository @repository end |
#startup ⇒ Object
Returns the value of attribute startup.
20 21 22 |
# File 'lib/gollum_rails/setup/options.rb', line 20 def startup @startup end |
#wiki_options ⇒ Object
Reads out the wiki options. Important is, that there needs to be some kind of hash to be present.
11 12 13 14 15 |
# File 'lib/gollum_rails/setup/options.rb', line 11 def @wiki_options ||= {} return @wiki_options if @wiki_options.kind_of? Hash raise InitializationError, "Options must be a kind of Hash. Found: #{@wiki_options.class}" end |
#wiki_path ⇒ Object
Returns the value of attribute wiki_path.
22 23 24 |
# File 'lib/gollum_rails/setup/options.rb', line 22 def wiki_path @wiki_path end |