class method
Gem::PackageTask.new
new(gem_spec) { |self| ... }
lib/rubygems/package_task.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/package_task.rb, line 73
def initialize(gem_spec)
init gem_spec
yield self if block_given?
define if block_given?
end
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.