Class: RegularExpression::NFA::FinishState

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



48
49
50
51
52
# File 'lib/regular_expression/nfa.rb', line 48

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