Method: Fa::Automaton#minus

Defined in:
lib/fa.rb

#minus(other) ⇒ Fa::Automaton

Produces the difference of self and other. Neither self nor other will be modified. The resulting automaton will match all strings that match self but not other,

Parameters:

Returns:

Raises:

  • OutOfMemoryError if libfa fails to allocate memory



112
113
114
# File 'lib/fa.rb', line 112

def minus(other)
  from_ptr( FFI::minus(faptr, other.faptr) )
end