Method: LibGems::PackageTask#initialize
- Defined in:
- lib/libgems/package_task.rb
#initialize(gem_spec) {|_self| ... } ⇒ PackageTask
Create a LibGems Package task library. Automatically define the gem if a block is given. If no block is supplied, then #define needs to be called to define the task.
79 80 81 82 83 |
# File 'lib/libgems/package_task.rb', line 79 def initialize(gem_spec) init gem_spec yield self if block_given? define if block_given? end |