Closed andrew2net closed 1 year ago
Thanks @andrew2net ! Indeed a bug.
This is resolved:
irb(main):004:0> pubid = Pubid::Iso::Identifier.parse_from_title("ISO/IEC 2382:2015 Information technology \u2014 Vocabulary")
=> #<Pubid::Iso::Identifier::InternationalStandard:0x0000000109fd4bc0 @copublisher="IEC", @number="2382"@8, @publisher="ISO", @year=2015>
irb(main):005:0> pubid.stage = Pubid::Iso::Stage.new(harmonized_code: "90.60")
=> #<Pubid::Iso::Stage:0x000000010a496ac8 @abbr=nil, @harmonized_code=#<Pubid::Iso::HarmonizedStageCode:0x000000010a496aa0 @stages=["90.60"]>>
irb(main):006:0> pubid.to_s
=> "ISO/IEC 2382:2015"
As titled.