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

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



11
12
13
14
15
16
# File 'lib/lutaml/formatter/graphviz.rb', line 11

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