Module: Extlib

Defined in:
lib/extlib/logger.rb,
lib/extlib.rb,
lib/extlib/hook.rb,
lib/extlib/pooling.rb,
lib/extlib/assertions.rb,
lib/extlib/byte_array.rb,
lib/extlib/inflection.rb,
lib/extlib/simple_set.rb

Overview

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

Defined Under Namespace

Modules: Assertions, Hook, Inflection, Pooling Classes: ByteArray, Logger, SimpleSet

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



37
38
39
# File 'lib/extlib/logger.rb', line 37

def logger
  @logger
end

Class Method Details

.exitingObject



45
46
47
48
# File 'lib/extlib.rb', line 45

def self.exiting
  return @exiting if defined?(@exiting)
  @exiting = false
end

.exiting=(bool) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/extlib.rb', line 36

def self.exiting= bool
  if bool && Extlib.const_defined?('Pooling')
    if Extlib::Pooling.scavenger?
      Extlib::Pooling.scavenger.wakeup
    end
  end
  @exiting = true
end