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



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

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