Module: Bindep
- Defined in:
- lib/bindep/os.rb,
lib/bindep/core.rb,
lib/bindep/item.rb,
lib/bindep/error.rb,
lib/bindep/context.rb,
lib/bindep/helpers.rb,
lib/bindep/library.rb,
lib/bindep/version.rb
Defined Under Namespace
Modules: Helpers, OS Classes: Context, Error, Item
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
-
.context ⇒ Object
Get the global context instance, create a new one on first call.
-
.load_file(filename = 'Bindepfile') ⇒ Object
Evaluate a Bindepfile in the global context.
-
.method_missing(method, *args, &block) ⇒ Object
Redirect all other method calls to the global context instance.
Class Method Details
.context ⇒ Object
Get the global context instance, create a new one on first call.
3 4 5 |
# File 'lib/bindep/core.rb', line 3 def self.context @context ||= Context.new end |
.load_file(filename = 'Bindepfile') ⇒ Object
Evaluate a Bindepfile in the global context.
8 9 10 |
# File 'lib/bindep/core.rb', line 8 def self.load_file(filename = 'Bindepfile') context.instance_eval File.read(filename) end |
.method_missing(method, *args, &block) ⇒ Object
Redirect all other method calls to the global context instance.
13 14 15 |
# File 'lib/bindep/core.rb', line 13 def self.method_missing(method, *args, &block) context.send method, *args, &block end |