Method: RC::DSL#config
- Defined in:
- lib/rc/dsl.rb
#config(command = nil, options = {}, &block) ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/rc/dsl.rb', line 49 def config(command=nil, ={}, &block) nested_keys = .keys & .keys.map{|k| k.to_sym} raise ArgumentError, "nested #{nested_keys.join(', ')}" unless nested_keys.empty? = .merge() @configuration.config(command, , &block) end |