Exception: Contr::Matcher::RulesNotMatched
- Inherits:
-
StandardError
- Object
- StandardError
- Contr::Matcher::RulesNotMatched
- Defined in:
- lib/contr/matcher.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(failed_rules, args) ⇒ RulesNotMatched
constructor
A new instance of RulesNotMatched.
- #message ⇒ Object
Constructor Details
#initialize(failed_rules, args) ⇒ RulesNotMatched
Returns a new instance of RulesNotMatched.
9 10 11 12 |
# File 'lib/contr/matcher.rb', line 9 def initialize(failed_rules, args) @failed_rules_minimized = failed_rules.map(&:values) @args = args end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/contr/matcher.rb', line 14 def "failed rules: #{@failed_rules_minimized.inspect}, args: #{@args.inspect}" end |