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.
183 184 185 |
# File 'lib/application_configuration.rb', line 183 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
191 192 193 |
# File 'lib/application_configuration.rb', line 191 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.
181 182 183 |
# File 'lib/application_configuration.rb', line 181 def namespace_name @namespace_name end |
Instance Method Details
#to_s ⇒ Object
187 188 189 |
# File 'lib/application_configuration.rb', line 187 def to_s self.namespace_name end |