Parent

Logging::Config::Configurator::DSL

Public Class Methods

process( &block ) click to toggle source
# File lib/logging/config/configurator.rb, line 137
def self.process( &block )
  dsl = new
  dsl.instance_eval(&block)
  dsl.__hash
end

Public Instance Methods

__hash() click to toggle source
# File lib/logging/config/configurator.rb, line 143
def __hash
  @hash ||= Hash.new
end
__store( key, value ) click to toggle source
# File lib/logging/config/configurator.rb, line 155
def __store( key, value )
  __hash[key] = value
end
method_missing( method, *args, &block ) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.