Sha256: b2b18499c257a3d116eddca9dff17bac792105d458f12ae510d6b017c7778c49

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

module Kernel
  alias :amalgalite_original_require :require
  #
  # hook into the system 'require' to allow for required text or blobs from an
  # amalgalite database.  
  #
  def require( filename )
    found = Amalgalite::Requires.require( filename )
    unless found
      found = amalgalite_original_require( filename )
    end
    return found
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
amalgalite-0.4.0 lib/amalgalite/core_ext/kernel/require.rb
amalgalite-0.4.2 lib/amalgalite/core_ext/kernel/require.rb
amalgalite-0.4.2-x86-mswin32-60 lib/amalgalite/core_ext/kernel/require.rb
amalgalite-0.4.1 lib/amalgalite/core_ext/kernel/require.rb