class Udongo::Config

Public Class Methods

new() click to toggle source
# File lib/udongo/config.rb, line 3
def initialize
  @configs = {}
end

Public Instance Methods

method_missing(method_name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/udongo/config.rb, line 7
def method_missing(method_name, *arguments, &block)
  super if method_name.to_s.include?('=')

  unless @configs[method_name]
    @configs[method_name] = "Udongo::Configs::#{method_name.to_s.camelcase}".constantize.new
  end

  @configs[method_name]
end