class SlimLint::Matcher::Base
Represents a Sexp
pattern implementing complex matching logic.
Subclasses can implement custom logic to create complex matches that can be reused across linters, DRYing up matching code.
@abstract
Public Instance Methods
match?(*)
click to toggle source
Whether this matcher matches the specified object.
This must be implemented by subclasses.
@param other [Object] @return [Boolean]
# File lib/slim_lint/matcher/base.rb, line 17 def match?(*) raise NotImplementedError, 'Matcher must implement `match?`' end