Sha256: c9582f60bd3caea60e12bb3cd837e6f0177a0744aa765cae3e68fa788f3a4540

Contents?: true

Size: 218 Bytes

Versions: 28

Compression:

Stored size: 218 Bytes

Contents

# frozen_string_literal: true

module SlimLint::Matcher
  # Will match anything, acting as a wildcard.
  class Anything < Base
    # @see {SlimLint::Matcher::Base#match?}
    def match?(*)
      true
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
slim_lint-0.20.1 lib/slim_lint/matcher/anything.rb
slim_lint-0.20.0 lib/slim_lint/matcher/anything.rb
slim_lint-0.19.0 lib/slim_lint/matcher/anything.rb
slim_lint-0.18.0 lib/slim_lint/matcher/anything.rb
slim_lint-0.17.1 lib/slim_lint/matcher/anything.rb
slim_lint-0.17.0 lib/slim_lint/matcher/anything.rb
slim_lint-0.16.1 lib/slim_lint/matcher/anything.rb
slim_lint-0.16.0 lib/slim_lint/matcher/anything.rb