class Accessibility::Graph::Edge
An edge in the UI hierarchy. Used by {Accessibility::Graph} in order to build Graphviz DOT graphs.
Attributes
style[RW]
The style of arrowhead to use
@return [String]
Public Class Methods
new(head, tail)
click to toggle source
@param head [Accessibility::Graph::Node] @param tail [Accessibility::Graph::Node]
# File lib/accessibility/graph.rb, line 137 def initialize head, tail @head, @tail = head, tail end
Public Instance Methods
to_dot()
click to toggle source
@return [String]
# File lib/accessibility/graph.rb, line 142 def to_dot arrow = style ? style : 'normal' "#{@head.id} -> #{@tail.id} [arrowhead = #{arrow}]" end