Class: Fear::Extractor::ValueMatcher Private

Inherits:
Matcher
  • Object
show all
Defined in:
lib/fear/extractor/value_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 against values – true, false, 1, “foo” etc.

Constant Summary

Constants inherited from Matcher

Matcher::EMPTY_ARRAY, Matcher::EMPTY_HASH

Instance Attribute Summary collapse

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 Attribute Details

#valueAny

Returns:

  • (Any)


10
11
12
# File 'lib/fear/extractor/value_matcher.rb', line 10

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



14
15
16
# File 'lib/fear/extractor/value_matcher.rb', line 14

def bindings(_)
  EMPTY_HASH
end

#defined_at?(arg) ⇒ 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.

Returns:

  • (Boolean)


10
11
12
# File 'lib/fear/extractor/value_matcher.rb', line 10

def defined_at?(arg)
  value === arg
end