class Fear::Extractor::EmptyListMatcher

Match only if array is empty

Public Instance Methods

bindings(_) click to toggle source
# File lib/fear/extractor/empty_list_matcher.rb, line 15
def bindings(_)
  Utils::EMPTY_HASH
end
defined_at?(other) click to toggle source

@!attribute index

@return [Types::Strict::Integer]
# File lib/fear/extractor/empty_list_matcher.rb, line 11
def defined_at?(other)
  other.empty?
end