instance method
Gem::SpecificationPolicy#validate_nil_attributes
validate_nil_attributes
lib/rubygems/specification_policy.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification_policy.rb, line 236
def validate_nil_attributes
nil_attributes = Gem::Specification.non_nil_attributes.select do |attrname|
@specification.instance_variable_get("@#{attrname}").nil?
end
return if nil_attributes.empty?
error "#{nil_attributes.join ", "} must not be nil"
end
No documentation available
See also
#validate_name
#validate_non_files
#validate_metadata
#validate_optional
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0