Module: Pakyow::Support::Configurable::ClassMethods
- Defined in:
- lib/pakyow/support/configurable.rb
Instance Method Summary collapse
-
#configure(environment = :__global, &block) ⇒ Object
Define configuration to be applied when configuring for an environment.
- #inherited(subclass) ⇒ Object private
Instance Method Details
#configure(environment = :__global, &block) ⇒ Object
Define configuration to be applied when configuring for an environment.
75 76 77 |
# File 'lib/pakyow/support/configurable.rb', line 75 def configure(environment = :__global, &block) @__config_environments[environment] = block end |
#inherited(subclass) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
80 81 82 83 |
# File 'lib/pakyow/support/configurable.rb', line 80 def inherited(subclass) super subclass.config.update_configurable(subclass) end |