Method: CodeNode::IR::Node::TemplateMethods#stamp_styles
- Defined in:
- lib/code_node/ir/node/template_methods.rb
#stamp_styles ⇒ String
Stamp the accumulated GraphViz styles in a format suitable for inclusion in a .dot file
62 63 64 65 66 67 68 |
# File 'lib/code_node/ir/node/template_methods.rb', line 62 def stamp_styles x = [] style.each_pair do |key, value| x << "#{key}=\"#{value}\"" end x.join ' ' end |