In Files
Parent
- Object
Information
Environment
An Environment represents a set of libraries.
Attributes
Public Class Methods
current()
click to toggle source
Current environment name.
# File lib/roll/environment.rb, line 22
22: def self.current
23: ENV['RUBYENV'] || DEFAULT
24: end
Public Instance Methods
each(&block)
click to toggle source
# File lib/roll/environment.rb, line 62
62: def each(&block) ; index.each(&block) ; end
index()
click to toggle source
# File lib/roll/environment.rb, line 42
42: def index
43: @index ||= Index.new(name)
44: end
lookup()
click to toggle source
# File lib/roll/environment.rb, line 47
47: def lookup
48: @lookup ||= Lookup.new(name)
49: end
save()
click to toggle source
Save index.
# File lib/roll/environment.rb, line 57
57: def save
58: index.save
59: end
size()
click to toggle source
# File lib/roll/environment.rb, line 65
65: def size ; index.size ; end
Disabled; run with --debug to generate this.