Method: Gem::PackageTask#initialize
- Defined in:
- lib/rubygems/package_task.rb
#initialize(gem_spec) {|_self| ... } ⇒ PackageTask
Create a Gem 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.
73 74 75 76 77 |
# File 'lib/rubygems/package_task.rb', line 73 def initialize(gem_spec) init gem_spec yield self if block_given? define if block_given? end |