Module: Dragonfly::Configurable::ClassMethods
- Defined in:
- lib/dragonfly/configurable.rb
Instance Method Summary collapse
- #config_methods ⇒ Object
- #default_configuration ⇒ Object
- #nested_configurables ⇒ Object
- #register_configuration(name, config = nil, &config_in_block) ⇒ Object
- #saved_configs ⇒ Object
Instance Method Details
#config_methods ⇒ Object
129 130 131 |
# File 'lib/dragonfly/configurable.rb', line 129 def config_methods @config_methods ||= [] end |
#default_configuration ⇒ Object
125 126 127 |
# File 'lib/dragonfly/configurable.rb', line 125 def default_configuration @default_configuration ||= {} end |
#nested_configurables ⇒ Object
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_configs ⇒ Object
141 142 143 |
# File 'lib/dragonfly/configurable.rb', line 141 def saved_configs @saved_configs ||= {} end |