DataObjects

This is here to remove DataObject's dependency on Extlib.

Constants

VERSION

Attributes

logger[RW]

The global logger for DataObjects

Public Class Methods

exiting() click to toggle source
# File lib/data_objects/pooling.rb, line 15
def self.exiting
  return @exiting if defined?(@exiting)
  @exiting = false
end
exiting=(bool) click to toggle source
# File lib/data_objects/pooling.rb, line 6
def self.exiting= bool
  if bool && DataObjects.const_defined?('Pooling')
    if DataObjects::Pooling.scavenger?
      DataObjects::Pooling.scavenger.wakeup
    end
  end
  @exiting = true
end
full_const_get(name) click to toggle source

@param name<String> The name of the constant to get, e.g. "Merb::Router".

@return <Object> The constant corresponding to the name.

# File lib/data_objects/utilities.rb, line 7
def self.full_const_get(name)
  list = name.split("::")
  list.shift if list.first.nil? || list.first.strip.empty?
  obj = ::Object
  list.each do |x|
    # This is required because const_get tries to look for constants in the
    # ancestor chain, but we only want constants that are HERE
    obj = obj.const_defined?(x) ? obj.const_get(x) : obj.const_missing(x)
  end
  obj
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.