Class: Fear::Extractor::IdentifierMatcher Private

Inherits:
Matcher
  • Object
show all
Defined in:
lib/fear/extractor/identifier_matcher.rb

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.

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

#nameTypes::Strict::Symbol

Returns:

  • (Types::Strict::Symbol)


9
10
11
# File 'lib/fear/extractor/identifier_matcher.rb', line 9

def defined_at?(_)
  true
end

Instance Method Details

#bindings(other) ⇒ 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/identifier_matcher.rb', line 13

def bindings(other)
  { name => other }
end

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


9
10
11
# File 'lib/fear/extractor/identifier_matcher.rb', line 9

def defined_at?(_)
  true
end