Class: Fear::Extractor::EmptyListMatcher Private
- Defined in:
- lib/fear/extractor/empty_list_matcher.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Match only if array is empty
Constant Summary
Constants inherited from Matcher
Matcher::EMPTY_ARRAY, Matcher::EMPTY_HASH
Instance Attribute Summary collapse
Instance Method Summary collapse
- #bindings(_) ⇒ Object private
- #defined_at?(other) ⇒ Boolean private
Methods inherited from Matcher
#and, #call, #call_or_else, #failure_reason, #initialize
Constructor Details
This class inherits a constructor from Fear::Extractor::Matcher
Instance Attribute Details
#index ⇒ Types::Strict::Integer
9 10 11 |
# File 'lib/fear/extractor/empty_list_matcher.rb', line 9 def defined_at?(other) other.empty? end |
Instance Method Details
#bindings(_) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fear/extractor/empty_list_matcher.rb', line 13 def bindings(_) EMPTY_HASH end |
#defined_at?(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/fear/extractor/empty_list_matcher.rb', line 9 def defined_at?(other) other.empty? end |