Class: UML::Graphviz::Attributes
- Inherits:
-
Hash
- Object
- Hash
- UML::Graphviz::Attributes
- Defined in:
- lib/uml/graphviz_helper.rb
Instance Method Summary collapse
Instance Method Details
#to_dot ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/uml/graphviz_helper.rb', line 5 def to_dot return '' if empty? result = inject([]) do |tmp, value| tmp << "#{value[0]} = \"#{value[1]}\"" end '[' + result.join(', ') + ']' end |