Method: Mustermann::Pattern#===

Defined in:
lib/mustermann/pattern.rb

#===(string) ⇒ Boolean

Note:

Needs to be overridden by subclass.

Returns Whether or not the pattern matches the given string.

Parameters:

  • string (String)

    The string to match against

Returns:

  • (Boolean)

    Whether or not the pattern matches the given string

Raises:

  • (NotImplementedError)

See Also:

[View source]

85
86
87
# File 'lib/mustermann/pattern.rb', line 85

def ===(string)
  raise NotImplementedError, 'subclass responsibility'
end