Sha256: 45ac21ebff82d8f55ead86d3f24ea830d1f29d9d5e2e1328ced26202496d704a
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
# Rubinius standard RUBY_IGNORE_CALLERS = [] unless defined? RUBY_IGNORE_CALLERS RUBY_IGNORE_CALLERS << %r{roll/kernel\.rb$} RUBY_IGNORE_CALLERS << %r{roll/original\.rb$} module ::Kernel alias_method :roll_original_require, :require alias_method :roll_original_load, :load #alias_method :gem_original_require, :require #alias_method :gem_original_load, :load # In which library is the current file participating? def __LIBRARY__ Roll::Library.load_stack.last end # Activate a library. def library(name, constraint=nil) Roll::Library.open(name, constraint) end module_function :library # Activate a library. def roll(name, constraint=nil) Roll::Library.open(name, constraint) end module_function :roll # Require script. def require(file) Roll::Library.require(file) end # Load script. def load(file, wrap=false) Roll::Library.load(file, wrap) end # Acquire script. def acquire(file, opts={}) Roll::Library.acquire(file, opts) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roll-1.2.0 | lib/roll/kernel.rb |