Class: Fear::SuccessPatternMatch Private

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

#success

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

#failure(*_conditions) ⇒ Fear::TryPatternMatch

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/success_pattern_match.rb', line 8

def failure(*_conditions)
  self
end