Class: Ginsu::Config
- Inherits:
-
Object
- Object
- Ginsu::Config
- Defined in:
- lib/ginsu/config.rb
Overview
Represents global configuration for Ginsu::Knife. Can override the following configuration options:
-
source
- the source directory of the static web site. Defaults to ‘static’.
Constant Summary collapse
- @@ATTRIBUTES =
[ :source, :slices, :links ]
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(params = {}) ⇒ Config
Returns a new instance of Config.
16 17 18 19 20 21 |
# File 'lib/ginsu/config.rb', line 16 def initialize(params = {}) params.each do |key,val| self.send("#{key}=", val) if self.respond_to? key end self.send(:init) if self.respond_to? :init end |