Class: AppDrone::Bundle
- Defined in:
- lib/app_drone/drones/bundle/bundle.rb
Constant Summary collapse
- @@gem =
Struct.new('Gem', :name, :opts)
Instance Attribute Summary collapse
-
#gems ⇒ Object
Returns the value of attribute gems.
Attributes inherited from Drone
Instance Method Summary collapse
Methods inherited from Drone
#>>, #^, #align, categories, category, dependants, dependencies, depends_on, desc, #do!, #do_finally!, drones, #flair!, generator_method, human_name, #initialize, #method_missing, #notify!, owns_generator_method, #pair?, pairs, pairs_with, param, #param, param_named, param_with, params, precursors, #render, run_after, to_sym
Constructor Details
This class inherits a constructor from AppDrone::Drone
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AppDrone::Drone
Instance Attribute Details
#gems ⇒ Object
Returns the value of attribute gems.
7 8 9 |
# File 'lib/app_drone/drones/bundle/bundle.rb', line 7 def gems @gems end |
Instance Method Details
#add(g, *opts) ⇒ Object
14 15 16 |
# File 'lib/app_drone/drones/bundle/bundle.rb', line 14 def add(g,*opts) self.gems << @@gem.new(g,*opts) end |
#execute ⇒ Object
18 19 20 |
# File 'lib/app_drone/drones/bundle/bundle.rb', line 18 def execute do! :gem_entries end |
#setup ⇒ Object
10 11 12 |
# File 'lib/app_drone/drones/bundle/bundle.rb', line 10 def setup self.gems = [] end |