Sha256: 8c2868693a4334115b707e4e1d6be04b3266796b150f94aca0f39c6c1a4628fe
Contents?: true
Size: 317 Bytes
Versions: 46
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module Lutaml module Uml module HasAttributes def update_attributes(attributes = {}) attributes.to_h.each do |name, value| value = value.respond_to?(:str) ? value.str : value public_send("#{name}=", value) end end end end end
Version data entries
46 entries across 46 versions & 2 rubygems