Module: COM::PatternError

Included in:
MethodInvocationError
Defined in:
lib/com/patternerror.rb

Instance Method Summary collapse

Instance Method Details

#replaces?(error) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/com/patternerror.rb', line 5

def replaces?(error)
  pattern =~ error.message
end