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
46:   def self.exiting
47:     return @exiting if defined?(@exiting)
48:     @exiting = false
49:   end
exiting=(bool) click to toggle source
    # File lib/extlib.rb, line 37
37:   def self.exiting= bool
38:     if bool && Extlib.const_defined?('Pooling')
39:       if Extlib::Pooling.scavenger?
40:         Extlib::Pooling.scavenger.wakeup
41:       end
42:     end
43:     @exiting = true
44:   end

Public Instance Methods

object_by_id(object_id) click to toggle source
    # File lib/extlib/local_object_space.rb, line 8
 8:     def object_by_id(object_id)
 9:       self.hook_scopes.detect {|object| object.object_id == object_id}
10:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.