Class: Fear::Extractor::AnyMatcher Private

Inherits:
Matcher
  • Object
show all
Defined in:
lib/fear/extractor/any_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.

Always match, E.g. `_ : Integer` without capturing variable

Constant Summary

Constants inherited from Matcher

Matcher::EMPTY_ARRAY, Matcher::EMPTY_HASH

Instance Method Summary collapse

Methods inherited from Matcher

#and, #call, #call_or_else, #failure_reason, #initialize

Constructor Details

This class inherits a constructor from Fear::Extractor::Matcher

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.


12
13
14
# File 'lib/fear/extractor/any_matcher.rb', line 12

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.


8
9
10
# File 'lib/fear/extractor/any_matcher.rb', line 8

def defined_at?(_other)
  true
end