Method: CodeNode::IR::Node::TemplateMethods#stamp_styles

Defined in:
lib/code_node/ir/node/template_methods.rb

#stamp_stylesString

Stamp the accumulated GraphViz styles in a format suitable for inclusion in a .dot file

Returns:

  • (String)

    style in the form key1="value1" key2="value2"



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