Sha256: af2fe78d2f8af85a0a087a73a3462d74c553d686b3f8f1dd4f1337905286d597

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

module Kernel
  alias :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 = original_require( filename )
    end
    return found
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amalgalite-0.2.2 lib/amalgalite/core_ext/kernel/require.rb
amalgalite-0.2.3 lib/amalgalite/core_ext/kernel/require.rb
amalgalite-0.2.4 lib/amalgalite/core_ext/kernel/require.rb