Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/graphviz_r.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#>>(node) ⇒ Object
383 384 385 386 387 388 389 |
# File 'lib/graphviz_r.rb', line 383 def >>(node) raise NoMethodError if empty? or not node.is_a? GraphvizR::Node parent = self[0].parent parent.to_digraph GraphvizR::Edge.new self, node, parent end |
#to_dot ⇒ Object
391 392 393 |
# File 'lib/graphviz_r.rb', line 391 def to_dot "{#{self.map{|e| e.to_s}.join('; ')};}" end |