Class: RegularExpression::NFA::StartState

Inherits:
State
  • Object
show all
Defined in:
lib/regular_expression/nfa.rb

Instance Attribute Summary

Attributes inherited from State

#transitions

Instance Method Summary collapse

Methods inherited from State

#add_transition, #initialize

Constructor Details

This class inherits a constructor from RegularExpression::NFA::State

Instance Method Details

#to_dot(graph, visited) ⇒ Object



40
41
42
43
44
# File 'lib/regular_expression/nfa.rb', line 40

def to_dot(graph, visited)
  super(graph, visited).tap do |node|
    node.attributes.merge!(label: "Start", shape: "box")
  end
end