Module: Satis::Options

Included in:
Configuration
Defined in:
lib/satis/configuration.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



22
23
24
# File 'lib/satis/configuration.rb', line 22

def self.included(cls)
  cls.extend(ClassMethods)
end

Instance Method Details

#set_defaults!Object



16
17
18
19
20
# File 'lib/satis/configuration.rb', line 16

def set_defaults!
  self.class.schema.each do |name, default|
    instance_variable_set("@#{name}", default)
  end
end