Class: Resyma::Core::RegexpNothing

Inherits:
Regexp
  • Object
show all
Defined in:
lib/resyma/core/automaton/regexp.rb

Instance Method Summary collapse

Methods inherited from Regexp

#to_automaton

Instance Method Details

#==(other) ⇒ Object



144
145
146
# File 'lib/resyma/core/automaton/regexp.rb', line 144

def ==(other)
  other.is_a?(RegexpNothing)
end

#inject(_ab, start_state) ⇒ Object



148
149
150
# File 'lib/resyma/core/automaton/regexp.rb', line 148

def inject(_ab, start_state)
  start_state
end