Exception: Kotoshu::AffixRuleError
- Defined in:
- lib/kotoshu/core/exceptions.rb
Overview
Error raised when an affix rule cannot be parsed.
Instance Attribute Summary collapse
-
#rule ⇒ String?
readonly
The rule that failed to parse.
Instance Method Summary collapse
-
#initialize(message, rule: nil) ⇒ AffixRuleError
constructor
Create a new affix rule error.
Constructor Details
#initialize(message, rule: nil) ⇒ AffixRuleError
Create a new affix rule error.
95 96 97 98 |
# File 'lib/kotoshu/core/exceptions.rb', line 95 def initialize(, rule: nil) @rule = rule super() end |
Instance Attribute Details
#rule ⇒ String? (readonly)
Returns The rule that failed to parse.
101 102 103 |
# File 'lib/kotoshu/core/exceptions.rb', line 101 def rule @rule end |