Sha256: 188b53ad2296461181b92a9b9521fff68a336217b346dddba2e4d9be291f28a5
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true module Fear module Extractor # Match only if array is empty # class EmptyListMatcher < Matcher # @!attribute index # @return [Types::Strict::Integer] # def defined_at?(other) other.empty? 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/empty_list_matcher.rb |