Class: Lutaml::Formatter::Graphviz::Attributes

Inherits:
Hash
  • Object
show all
Defined in:
lib/lutaml/lml/formatter/graphviz.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



20
21
22
23
24
25
# File 'lib/lutaml/lml/formatter/graphviz.rb', line 20

def to_s
  to_a
    .reject { |(_k, val)| val.nil? }
    .map { |(a, b)| "#{a}=#{b.inspect}" }
    .join(' ')
end