Class: Logging::Config::Configurator::DSL

### Home Classes Methods

### In Files

- lib/logging/config/configurator.rb

### Parent

Object

### Methods

- ::process
- #__hash
- #__store
- #method_missing

### Files

- History.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Logging
- Logging::Appender
- Logging::Appenders
- Logging::Appenders::Buffering
- Logging::Appenders::Email
- Logging::Appenders::File
- Logging::Appenders::Growl
- Logging::Appenders::IO
- Logging::Appenders::RollingFile
- Logging::Appenders::Stderr
- Logging::Appenders::Stdout
- Logging::Appenders::StringIo
- Logging::Appenders::Syslog
- Logging::ColorScheme
- Logging::Config
- Logging::Config::Configurator
- Logging::Config::Configurator::DSL
- Logging::Config::Configurator::Error
- Logging::Config::Configurator::TopLevelDSL
- Logging::Config::YamlConfigurator
- Logging::Config::YamlConfigurator::Error
- Logging::Layout
- Logging::Layouts
- Logging::Layouts::Basic
- Logging::Layouts::Parseable
- Logging::Layouts::Pattern
- Logging::Logger
- Logging::MappedDiagnosticContext
- Logging::NestedDiagnosticContext
- Logging::Proxy
- Logging::RailsCompat
- Logging::Repository
- Logging::Repository::Singleton
- Logging::RootLogger
- Logging::Stats
- Logging::Stats::Sampler
- Logging::Stats::Tracker
- RSpec
- RSpec::Core
- RSpec::Core::Configuration
- RSpec::LoggingHelper
- RSpec::LoggingHelper
- Spec
- Spec::Runner
- Spec::Runner::Configuration
- Object
- Object::LoggingHelper
- File
- FileUtils
- Hash
- Kernel
- Module
- ReentrantMutex
- String

No matching classes.

# 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.