Class: Ginsu::Config

Inherits:
Object
  • Object
show all
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

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