Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Specification#spec_name
spec_name
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 2364
def spec_name
"#{full_name}.gemspec"
end
The default name of the gemspec. See also file_name
Example
spec.spec_name # => "example-1.0.gemspec"