Class: VRundler::BundleGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/vrundler/bundle_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ BundleGroup

Returns a new instance of BundleGroup.



5
6
7
# File 'lib/vrundler/bundle_group.rb', line 5

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/vrundler/bundle_group.rb', line 3

def name
  @name
end

Instance Method Details

#bundle(*names) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/vrundler/bundle_group.rb', line 9

def bundle(*names)
  names.each do |name|
    instance = Bundle.new(name, self)
    yield instance, Bundles if block_given?
    Bundles << instance
  end
end