Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/graphviz_r.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#>>(node) ⇒ Object

Raises:

  • (NoMethodError)


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_dotObject



391
392
393
# File 'lib/graphviz_r.rb', line 391

def to_dot
  "{#{self.map{|e| e.to_s}.join('; ')};}"
end