Method: Fa::Automaton#contains
- Defined in:
- lib/fa.rb
#contains(other) ⇒ Boolean
Returns whether self matches all the strings that other matches. self may match more strings than that.
147 148 149 150 151 152 153 |
# File 'lib/fa.rb', line 147 def contains(other) # The C function works like fa1 <= fa2, and not how the # Ruby nomenclature would suggest it, so swap the arguments r = FFI::contains(other.faptr, faptr) raise Error if r < 0 return r == 1 end |