Class: Grenache::BaseConfiguration
- Inherits:
-
Object
- Object
- Grenache::BaseConfiguration
show all
- Defined in:
- lib/grenache/configurable.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/grenache/configurable.rb', line 7
def method_missing(name, *args, &block)
if name[-1] == "="
values[name[0,name.size-1]] = args.first
else
values[name.to_s]
end
end
|
Instance Method Details
#values ⇒ Object
3
4
5
|
# File 'lib/grenache/configurable.rb', line 3
def values
@values ||= {}
end
|