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