Method: Hanuman::Graphvizzer::Universe#to_s
- Defined in:
- lib/hanuman/graphvizzer/gv_models.rb
#to_s ⇒ Object
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/hanuman/graphvizzer/gv_models.rb', line 86 def to_s str = [] str << brace("digraph #{name}") ## digraph Wukong { str << line(" rankdir = #{orient}") ## rankdir = TB; items.each do |item| ## subgraph "cluster_cherry_pie" { str << item.to_s ## # ... end ## } str << close_brace ## } str.join("\n") end |