Module: Kernel
- Defined in:
- lib/loadable/kernel.rb
Instance Method Summary collapse
- #load(fname, options = {}) ⇒ Object
-
#load0 ⇒ Object
Aliases for original load and require.
- #require(fname, options = {}) ⇒ Object
- #require0 ⇒ Object
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, ={}) = Hash=== ? : {:wrap=>} [:load] = true unless .key?(:load) Loadable.call(fname, ) #success = LoadSystem.load(fname, options) #if success.nil? # success = load_without_wedge(fname) #end #success end |
#load0 ⇒ Object
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, ={}) [:load] = false unless .key?(:load) Loadable.call(fname, ) #success = LoadSystem.require(fname, options) #if success.nil? # success = require_without_wedge(fname) #end #success end |
#require0 ⇒ Object
5 |
# File 'lib/loadable/kernel.rb', line 5 alias_method :require0, :require |