Module: Reconfig
- Extended by:
- Forwardable
- Defined in:
- lib/reconfig.rb,
lib/reconfig/version.rb,
lib/reconfig/namespace.rb,
lib/reconfig/type_mapper.rb,
lib/reconfig/redis_client.rb,
lib/reconfig/configuration.rb
Defined Under Namespace
Classes: Configuration, Namespace, RedisClient, TypeMapper, Version
Class Method Summary
collapse
Class Method Details
.[](namespace) ⇒ Object
18
19
20
|
# File 'lib/reconfig.rb', line 18
def [](namespace)
namespaces[namespace]
end
|
13
14
15
16
|
# File 'lib/reconfig.rb', line 13
def configure
yield configuration if block_given?
apply_configuration
end
|
.method_missing(method, *args, &block) ⇒ Object
30
31
32
33
34
35
36
|
# File 'lib/reconfig.rb', line 30
def method_missing(method, *args, &block)
if namespaces.keys.include? method.to_sym
return namespaces[method.to_sym]
end
super
end
|
.refresh ⇒ Object
22
23
24
|
# File 'lib/reconfig.rb', line 22
def refresh
read_namespaces
end
|
.respond_to?(method) ⇒ Boolean
26
27
28
|
# File 'lib/reconfig.rb', line 26
def respond_to?(method)
namespaces.keys.include?(method) || super
end
|