Class: SettingCrazy::NamespacedSettingsProxy
- Inherits:
-
SettingsProxy
- Object
- SettingsProxy
- SettingCrazy::NamespacedSettingsProxy
- Defined in:
- lib/settingcrazy/namespaced_settings_proxy.rb
Instance Attribute Summary
Attributes inherited from SettingsProxy
Instance Method Summary collapse
-
#initialize(model, namespace) ⇒ NamespacedSettingsProxy
constructor
A new instance of NamespacedSettingsProxy.
Methods inherited from SettingsProxy
#[], #[]=, #bulk_assign, #delete, #each, #inspect, #map, #method_missing, #parent_settings, #to_hash
Constructor Details
#initialize(model, namespace) ⇒ NamespacedSettingsProxy
Returns a new instance of NamespacedSettingsProxy.
3 4 5 6 7 |
# File 'lib/settingcrazy/namespaced_settings_proxy.rb', line 3 def initialize(model, namespace) @model = model @namespace = namespace @template = namespace.template end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SettingCrazy::SettingsProxy