method
yaml_initialize
v2_2_9 -
Show latest stable
- Class:
Gem::Specification
yaml_initialize(tag, vals)public
No documentation available.
# File lib/rubygems/specification.rb, line 2751
def yaml_initialize(tag, vals) # :nodoc:
vals.each do |ivar, val|
case ivar
when "date"
# Force Date to go through the extra coerce logic in date=
self.date = val.untaint
else
instance_variable_set "@#{ivar}", val.untaint
end
end
@original_platform = @platform # for backwards compatibility
self.platform = Gem::Platform.new @platform
end