Class | Capcode::Configuration |
In: |
lib/capcode/configuration.rb
|
Parent: | Object |
# File lib/capcode/configuration.rb, line 61 61: def get( key = nil ) 62: if key.nil? 63: config 64: else 65: config[key] || nil 66: end 67: end
Set global configuration options
Options :
It can exist specifics options depending on a renderer, a helper, …
Example :
module Capcode set :erb, "/path/to/erb/files" ... end
# File lib/capcode/configuration.rb, line 52 52: def set( key, value, opts = {} ) 53: if Hash === value 54: opts = value 55: value = nil 56: end 57: config[key] = value 58: options[key] = opts 59: end