Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::SpecificationPolicy#validate_required_attributes
validate_required_attributes
lib/rubygems/specification_policy.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_policy.rb, line 255
def validate_required_attributes
Gem::Specification.required_attributes.each do |symbol|
unless @specification.send symbol
error "missing value for attribute #{symbol}"
end
end
end
No documentation available
See also
#validate_required!
#validate_required_metadata!
#validate_platform
#validate_required_ruby_version
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0