Class: Pubid::Omg::Builder
- Inherits:
-
Object
- Object
- Pubid::Omg::Builder
- Defined in:
- lib/pubid/omg/builder.rb
Overview
Builds a Pubid::Omg::Identifier from a parse tree.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(parsed_data) ⇒ Object
7 8 9 |
# File 'lib/pubid/omg/builder.rb', line 7 def self.build(parsed_data) new.build(parsed_data) end |
Instance Method Details
#build(data) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/pubid/omg/builder.rb', line 11 def build(data) Identifiers::Specification.new( acronym: data[:acronym].to_s, version: data[:version]&.to_s, ) end |