Module: Mensa::Options

Included in:
Configuration
Defined in:
lib/mensa/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/mensa/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/mensa/configuration.rb', line 16

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