Module: Pekky::Config
- Defined in:
- lib/pekky/config.rb
Class Method Summary collapse
Class Method Details
.[](name) ⇒ Object
38 39 40 |
# File 'lib/pekky/config.rb', line 38 def self.[](name) @config[name] end |
.[]=(option, val) ⇒ Object
42 43 44 |
# File 'lib/pekky/config.rb', line 42 def self.[]=(option, val) set(option, val) end |
.load(p) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pekky/config.rb', line 20 def self.load(p) unless @loaded @config = @default_config.merge(@config) @config[:root] = p @config.each do |k, v| @config[k] = File.join(p, v) if k.to_s.match(/_dir$/) end @loaded = true end end |
.page_configs ⇒ Object
34 35 36 |
# File 'lib/pekky/config.rb', line 34 def self.page_configs @page_configs end |