Module: Kernel
- Defined in:
- lib/roll/kernel.rb,
lib/roll/original.rb
Class Method Summary collapse
-
.library(name, constraint = nil) ⇒ Object
Activate a library.
-
.roll(name, constraint = nil) ⇒ Object
Activate a library.
Instance Method Summary collapse
-
#__LIBRARY__ ⇒ Object
In which library is the current file participating?.
-
#acquire(file, opts = {}) ⇒ Object
Acquire script.
-
#load(file, wrap = false) ⇒ Object
(also: #original_load)
Load script.
-
#require(file) ⇒ Object
(also: #original_require)
Require script.
Class Method Details
Instance Method Details
#__LIBRARY__ ⇒ Object
In which library is the current file participating?
7 8 9 |
# File 'lib/roll/kernel.rb', line 7 def __LIBRARY__ Roll::Library.load_stack.last end |
#acquire(file, opts = {}) ⇒ Object
Acquire script.
36 37 38 |
# File 'lib/roll/kernel.rb', line 36 def acquire(file, opts={}) Roll::Library.acquire(file, opts) end |