Module: Extlib

Defined in:
lib/extlib/logger.rb,
lib/extlib.rb,
lib/extlib/hook.rb,
lib/extlib/pooling.rb,
lib/extlib/simple_set.rb,
lib/extlib/inflection.rb,
lib/extlib/byte_array.rb,
lib/extlib/assertions.rb,
lib/extlib/local_object_space.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, LocalObjectSpace, 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


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

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

.exiting=(bool) ⇒ Object


37
38
39
40
41
42
43
44
# 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