Class: Fear::FailurePatternMatch Private

Inherits:
TryPatternMatch show all
Defined in:
lib/fear/failure_pattern_match.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.

Constant Summary

Constants inherited from TryPatternMatch

TryPatternMatch::FAILURE_EXTRACTOR, TryPatternMatch::SUCCESS_EXTRACTOR

Instance Attribute Summary

Attributes inherited from PatternMatch

#result

Instance Method Summary collapse

Methods inherited from TryPatternMatch

#failure

Methods inherited from PatternMatch

__new__, #case, #else, #initialize, mixin, new, #or_else, #xcase

Constructor Details

This class inherits a constructor from Fear::PatternMatch

Instance Method Details

#success(*_conditions) ⇒ 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.



4
5
6
# File 'lib/fear/failure_pattern_match.rb', line 4

def success(*_conditions)
  self
end