Method: Graph::Thingy#label
- Defined in:
- lib/graph.rb
#label(name) ⇒ Object
Shortcut method to set the label attribute.
512 513 514 515 516 |
# File 'lib/graph.rb', line 512 def label name attributes.reject! { |s| s =~ /^label =/ } attributes << "label = #{Graph.escape_label name}" self end |