Sha256: ce3550d8f6dd095a93b018fa3f53a5915ec4b36c610668cafb17ab777f4612a6

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

module Fear
  module Extractor
    # Match against values -- true, false, 1, "foo" etc.
    class ValueMatcher < Matcher
      # @!attribute value
      #   @return [Any]

      def defined_at?(arg)
        value === arg
      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/value_matcher.rb