class Mealy::Label
FSM state transition arrow labels. In effect we match the input tokens against the labels to decide which transition to take.
Public Class Methods
new(label)
click to toggle source
@param label Something that can be tested with input tokens
# File lib/mealy/label.rb, line 10 def initialize(label) @label = label end
Public Instance Methods
match?(input)
click to toggle source
@param input Something that can match label
# File lib/mealy/label.rb, line 15 def match?(input) @label === input end