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