Sha256: 651ad53f1f5932d930bd8aa77435169a754f399c271e9ad53b9e6b77bf76448b
Contents?: true
Size: 529 Bytes
Versions: 20
Compression:
Stored size: 529 Bytes
Contents
module SlimLint::Matcher # 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 class Base # Whether this matcher matches the specified object. # # This must be implemented by subclasses. # # @param other [Object] # @return [Boolean] def match?(*) raise NotImplementedError, 'Matcher must implement `match?`' end end end
Version data entries
20 entries across 20 versions & 1 rubygems