Module: Kernel

Defined in:
lib/loadable/kernel.rb

Instance Method Summary collapse

Instance Method Details

#load(fname, options = {}) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/loadable/kernel.rb', line 23

def load(fname, options={})
  options = Hash===options ? options : {:wrap=>options}
  options[:load] = true unless options.key?(:load)
  Loadable.call(fname, options)
  #success = LoadSystem.load(fname, options)
  #if success.nil?
  #  success = load_without_wedge(fname)
  #end
  #success
end

#load0Object

Aliases for original load and require.



4
# File 'lib/loadable/kernel.rb', line 4

alias_method :load0,    :load

#require(fname, options = {}) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/loadable/kernel.rb', line 12

def require(fname, options={})
  options[:load] = false unless options.key?(:load)
  Loadable.call(fname, options)
  #success = LoadSystem.require(fname, options)
  #if success.nil?
  #  success = require_without_wedge(fname)
  #end
  #success
end

#require0Object



5
# File 'lib/loadable/kernel.rb', line 5

alias_method :require0, :require