class Fear::Extractor::TypedIdentifierMatcher
Match and capture identifier with specific type. E.g. +foo : Integer+
Public Instance Methods
bindings(other)
click to toggle source
# File lib/fear/extractor/typed_identifier_matcher.rb, line 17 def bindings(other) { identifier.name => other } end
defined_at?(other)
click to toggle source
@!attribute identifier
@return [IdentifierMatcher]
@!attribute type
@return [ValueMatcher]
# File lib/fear/extractor/typed_identifier_matcher.rb, line 13 def defined_at?(other) type.defined_at?(other) end
failure_reason(other)
click to toggle source
# File lib/fear/extractor/typed_identifier_matcher.rb, line 21 def failure_reason(other) type.failure_reason(other) end