Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::PackageTask#init
init(gem)
lib/rubygems/package_task.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/package_task.rb, line 86
def init(gem)
super gem.full_name, :noversion
@gem_spec = gem
@content_addressable = false
@package_files += gem_spec.files if gem_spec.files
@fileutils_output = $stdout
end
Initialization tasks without the “yield self” or define operations.
See also
#discard_stale_stamp_file
#package_name
#define
#recorded_gem_path
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0