Class: RegularExpression::NFA::Transition::Value

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



74
75
76
# File 'lib/regular_expression/nfa.rb', line 74

def state
  @state
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



74
75
76
# File 'lib/regular_expression/nfa.rb', line 74

def value
  @value
end

Instance Method Details

#labelObject



75
76
77
# File 'lib/regular_expression/nfa.rb', line 75

def label
  value.inspect
end