Module: Extlib

### Home Classes Methods

### In Files

- lib/extlib.rb
- lib/extlib/assertions.rb
- lib/extlib/byte_array.rb
- lib/extlib/hook.rb
- lib/extlib/inflection.rb
- lib/extlib/local_object_space.rb
- lib/extlib/logger.rb
- lib/extlib/pooling.rb
- lib/extlib/simple_set.rb

### Namespace

- MODULE Extlib::Assertions
- MODULE Extlib::Hook
- MODULE Extlib::Inflection
- MODULE Extlib::LocalObjectSpace
- MODULE Extlib::Pooling
- CLASS Extlib::ByteArray
- CLASS Extlib::Logger
- CLASS Extlib::SimpleSet

### Methods

- ::exiting
- ::exiting=

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- Extlib
- Extlib::Assertions
- Extlib::ByteArray
- Extlib::Hook
- Extlib::Hook::ClassMethods
- Extlib::Inflection
- Extlib::LocalObjectSpace
- Extlib::Logger
- Extlib::Pooling
- Extlib::Pooling::InvalidResourceError
- Extlib::Pooling::Pool
- Extlib::SimpleSet
- Gem
- Gem::SourceIndex
- Gem::Specification
- LazyModule
- LazyModule::ClassMethods
- Array
- Class
- DateTime
- Dictionary
- FalseClass
- Hash
- LazyArray
- Mash
- Module
- NilClass
- Numeric
- Object
- ObjectSpace
- Pathname
- REXMLUtilityNode
- String
- Struct
- Symbol
- Time
- ToHashParser
- TrueClass
- VirtualFile

No matching classes.

# Extlib

This class has exists to represent binary data. This is mainly used by DataObjects. Binary data sometimes needs to be quoted differently than regular string data (even if the string is just plain ASCII).

#### Public Extlib Logger API

To replace an existing logger with a new one:

    Extlib::Logger.set_log(log{String, IO},level{Symbol, String})

Available logging levels are

    Extlib::Logger::{ Fatal, Error, Warn, Info, Debug }

Logging via:

    Extlib.logger.fatal(message<String>,&block)
    Extlib.logger.error(message<String>,&block)
    Extlib.logger.warn(message<String>,&block)
    Extlib.logger.info(message<String>,&block)
    Extlib.logger.debug(message<String>,&block)

Logging with autoflush:

    Extlib.logger.fatal!(message<String>,&block)
    Extlib.logger.error!(message<String>,&block)
    Extlib.logger.warn!(message<String>,&block)
    Extlib.logger.info!(message<String>,&block)
    Extlib.logger.debug!(message<String>,&block)

Flush the buffer to

    Extlib.logger.flush

Remove the current log object

    Extlib.logger.close

#### Private Extlib Logger API

To initialize the logger you create a new object, proxies to set_log.

    Extlib::Logger.new(log{String, IO},level{Symbol, String})

### Attributes

logger[RW]

### Public Class Methods

exiting() click to toggle source

    # File lib/extlib.rb, line 46
    def self.exiting
      return @exiting if defined?(@exiting)
      @exiting = false
    end

exiting=(bool) click to toggle source

    # File lib/extlib.rb, line 37
    def self.exiting= bool
      if bool && Extlib.const_defined?('Pooling')
        if Extlib::Pooling.scavenger?
          Extlib::Pooling.scavenger.wakeup
        end
      end
      @exiting = true
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.