Class: Pro::Index
Instance Attribute Summary collapse
-
#base_dirs ⇒ Object
readonly
Returns the value of attribute base_dirs.
-
#bases ⇒ Object
readonly
Returns the value of attribute bases.
-
#created_version ⇒ Object
readonly
Returns the value of attribute created_version.
Instance Method Summary collapse
-
#each ⇒ Object
yields all repo objects in all bases.
-
#initialize(bases, base_dirs) ⇒ Index
constructor
A new instance of Index.
Constructor Details
#initialize(bases, base_dirs) ⇒ Index
Returns a new instance of Index.
6 7 8 9 |
# File 'lib/pro/index.rb', line 6 def initialize(bases,base_dirs) @bases, @base_dirs = bases, base_dirs @created_version = Pro::VERSION end |
Instance Attribute Details
#base_dirs ⇒ Object (readonly)
Returns the value of attribute base_dirs.
5 6 7 |
# File 'lib/pro/index.rb', line 5 def base_dirs @base_dirs end |
#bases ⇒ Object (readonly)
Returns the value of attribute bases.
5 6 7 |
# File 'lib/pro/index.rb', line 5 def bases @bases end |
#created_version ⇒ Object (readonly)
Returns the value of attribute created_version.
5 6 7 |
# File 'lib/pro/index.rb', line 5 def created_version @created_version end |
Instance Method Details
#each ⇒ Object
yields all repo objects in all bases
11 12 13 14 15 |
# File 'lib/pro/index.rb', line 11 def each bases.each do |key,val| val.each {|r| yield r} end end |