class Lutaml::Uml::Parsers::Attribute
Public Class Methods
parse(io, options = {})
click to toggle source
# File lib/lutaml/uml/parsers/attribute.rb, line 15 def self.parse(io, options = {}) new.parse(io, options) end
Public Instance Methods
parse(io, options = {})
click to toggle source
Calls superclass method
# File lib/lutaml/uml/parsers/attribute.rb, line 19 def parse(io, options = {}) tree = Transform.new.apply(super) tree = tree[:assignments].each_with_object({}) do |assignment, memo| memo[assignment[:name].to_s] = assignment[:value] end tree end