Module: Signum::Options

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



23
24
25
# File 'lib/signum/configuration.rb', line 23

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

Instance Method Details

#set_defaults!Object



17
18
19
20
21
# File 'lib/signum/configuration.rb', line 17

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