Sha256: 51eebc8237dc49263c6086d39b645ad787ebe473985cb7bef5fe069f14a3b47d

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module Fear
  module Extractor
    # Always match, E.g. `_ : Integer` without capturing variable
    #
    class AnyMatcher < Matcher
      def defined_at?(_other)
        true
      end

      def bindings(_)
        EMPTY_HASH
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fear-1.1.0 lib/fear/extractor/any_matcher.rb