Class: Sprinkle::Installers::Pear
- Defined in:
- lib/sprinkle/installers/pear.rb
Overview
Pear Package Installer
Instance Attribute Summary collapse
-
#packages ⇒ Object
:nodoc:.
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Attributes included from Configurable
Instance Method Summary collapse
-
#initialize(parent, *packages, &block) ⇒ Pear
constructor
:nodoc:.
Methods inherited from Installer
Methods included from Configurable
#assert_delivery, #defaults, #method_missing, #option?
Constructor Details
#initialize(parent, *packages, &block) ⇒ Pear
:nodoc:
8 9 10 11 12 13 14 15 16 |
# File 'lib/sprinkle/installers/pear.rb', line 8 def initialize(parent, *packages, &block) #:nodoc: packages.flatten! .update(packages.pop) if packages.last.is_a?(Hash) super parent, , &block @packages = packages end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Configurable
Instance Attribute Details
#packages ⇒ Object
:nodoc:
6 7 8 |
# File 'lib/sprinkle/installers/pear.rb', line 6 def packages @packages end |