module ConfigModule

Constants

VERSION

Public Instance Methods

[](key, *args) click to toggle source
# File lib/config_module.rb, line 12
def [] key, *args
  __config_module_helper.field_lookup_handler key, caller(1), *args
end
config() click to toggle source
# File lib/config_module.rb, line 16
def config
  __config_module_helper.config
end
has_key?(key) click to toggle source
# File lib/config_module.rb, line 20
def has_key? key
  __config_module_helper.config.has_key? key
end

Protected Instance Methods

config_file(new_config_file) click to toggle source
# File lib/config_module.rb, line 26
def config_file new_config_file
  __config_module_helper.config_file = new_config_file
end
namespace(*new_namespace) click to toggle source
# File lib/config_module.rb, line 30
def namespace *new_namespace
  __config_module_helper.namespaces = new_namespace.flatten
end

Private Instance Methods

__config_module_helper() click to toggle source
# File lib/config_module.rb, line 36
def __config_module_helper
  @__config_module_helper ||= ConfigHelper.new
end
method_missing(name, *args, &block) click to toggle source

rubocop:disable Style/MethodMissing

# File lib/config_module.rb, line 41
def method_missing name, *args, &block
  __config_module_helper.method_missing_handler name, caller(1), *args, &block
end
respond_to_missing?(name, include_all) click to toggle source

rubocop:enable Style/MethodMissing

Calls superclass method
# File lib/config_module.rb, line 46
def respond_to_missing? name, include_all
  __config_module_helper.respond_to_missing_handler(name, include_all) || super
end