# File lib/logging/config/configurator.rb, line 137 def self.process( &block ) dsl = new dsl.instance_eval(&block) dsl.__hash end
# File lib/logging/config/configurator.rb, line 143 def __hash @hash ||= Hash.new end
# File lib/logging/config/configurator.rb, line 155 def __store( key, value ) __hash[key] = value end
# File lib/logging/config/configurator.rb, line 147 def method_missing( method, *args, &block ) args << DSL.process(&block) if block key = method.to_sym value = (1 == args.length ? args.first : args) __store(key, value) end