Module: Dragonfly::Configurable::ClassMethods

Defined in:
lib/dragonfly/configurable.rb

Instance Method Summary collapse

Instance Method Details

#config_methodsObject



129
130
131
# File 'lib/dragonfly/configurable.rb', line 129

def config_methods
  @config_methods ||= []
end

#default_configurationObject



125
126
127
# File 'lib/dragonfly/configurable.rb', line 125

def default_configuration
  @default_configuration ||= {}
end

#nested_configurablesObject



133
134
135
# File 'lib/dragonfly/configurable.rb', line 133

def nested_configurables
  @nested_configurables ||= []
end

#register_configuration(name, config = nil, &config_in_block) ⇒ Object



137
138
139
# File 'lib/dragonfly/configurable.rb', line 137

def register_configuration(name, config=nil, &config_in_block) 
  saved_configs[name] = config_in_block || config
end

#saved_configsObject



141
142
143
# File 'lib/dragonfly/configurable.rb', line 141

def saved_configs
  @saved_configs ||= {}
end