Class: Application::Configuration::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/application_configuration.rb

Overview

this class is used to namespace configurations

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_sObject



191
192
193
# File 'lib/application_configuration.rb', line 191

def to_s
  self.namespace_name
end