Class: Application::Configuration::Namespace
- Defined in:
- lib/application_configuration.rb
Overview
this class is used to namespace configurations
Instance Attribute Summary collapse
-
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Namespace
constructor
A new instance of Namespace.
- #method_missing(sym, *args) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Namespace
Returns a new instance of Namespace.
187 188 189 |
# File 'lib/application_configuration.rb', line 187 def initialize(name) self.namespace_name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
195 196 197 |
# File 'lib/application_configuration.rb', line 195 def method_missing(sym, *args) Application::Configuration.send("#{self}__#{sym}", *args) end |
Instance Attribute Details
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
185 186 187 |
# File 'lib/application_configuration.rb', line 185 def namespace_name @namespace_name end |
Instance Method Details
#to_s ⇒ Object
191 192 193 |
# File 'lib/application_configuration.rb', line 191 def to_s self.namespace_name end |