Sha256: 192bdf6d9ee672d689c9ca74a577b1d52b3a242b191f32f2295da737e9d31c19

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

module Kernel
  # Returns the object's singleton class.
  #
  # @return [Class]
  #
  # @api private
  unless respond_to?(:singleton_class)
    def singleton_class
      class << self
        self
      end
    end
  end

  # Delegates to DataMapper.repository()
  #
  # @api public
  private def repository(*args, &block)
    DataMapper.repository(*args, &block)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-dm-core-1.3.0 lib/dm-core/core_ext/kernel.rb
sbf-dm-core-1.3.0.beta lib/dm-core/core_ext/kernel.rb