lib/fear/try_pattern_match.rb in fear-1.1.0 vs lib/fear/try_pattern_match.rb in fear-1.2.0
- old
+ new
@@ -5,10 +5,13 @@
#
# @note it has two optimized subclasses +Fear::SuccessPatternMatch+ and +Fear::FailurePatternMatch+
# @api private
class TryPatternMatch < Fear::PatternMatch
SUCCESS_EXTRACTOR = :get.to_proc
+ private_constant :SUCCESS_EXTRACTOR
+
FAILURE_EXTRACTOR = :exception.to_proc
+ private_constant :FAILURE_EXTRACTOR
# Match against +Fear::Success+
#
# @param conditions [<#==>]
# @return [Fear::TryPatternMatch]