Module: Super::Configuration::ConfigurationLogic Private
- Included in:
- Super::Configuration
- Defined in:
- lib/super/configuration.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
- .included(base) ⇒ Object private
Instance Method Summary collapse
- #configured?(attr) ⇒ Boolean private
- #initialize ⇒ Object private
Class Method Details
.included(base) ⇒ 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.
23 24 25 |
# File 'lib/super/configuration.rb', line 23 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#configured?(attr) ⇒ Boolean
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.
37 38 39 |
# File 'lib/super/configuration.rb', line 37 def configured?(attr) instance_variable_defined?("@#{attr}") end |
#initialize ⇒ 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.
27 28 29 30 31 32 33 34 35 |
# File 'lib/super/configuration.rb', line 27 def initialize self.class.defaults.each do |key, value| if value.respond_to?(:call) value = value.call end public_send("#{key}=", value) end end |