Module: Lutaml::Uml::HasAttributes
- Included in:
- Cli::LmlCommands, CommandLine, Formatter::Base, Node::Base
- Defined in:
- lib/lutaml/uml/has_attributes.rb
Instance Method Summary collapse
Instance Method Details
#update_attributes(attributes = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/lutaml/uml/has_attributes.rb', line 6 def update_attributes(attributes = {}) attributes.to_h.each do |name, value| value = value.str if value.respond_to?(:str) public_send(:"#{name}=", value) end end |