Exception: Marty::BaseRuleView::DupKeyError
- Inherits:
-
StandardError
- Object
- StandardError
- Marty::BaseRuleView::DupKeyError
- Defined in:
- app/components/marty/base_rule_view.rb
Instance Method Summary collapse
-
#initialize(key, lineno) ⇒ DupKeyError
constructor
A new instance of DupKeyError.
- #message ⇒ Object
Constructor Details
#initialize(key, lineno) ⇒ DupKeyError
Returns a new instance of DupKeyError.
41 42 43 44 |
# File 'app/components/marty/base_rule_view.rb', line 41 def initialize(key, lineno) @key = key @lineno = lineno end |
Instance Method Details
#message ⇒ Object
45 46 47 |
# File 'app/components/marty/base_rule_view.rb', line 45 def "keyword '#{@key}' specified more than once (line #{@lineno})" end |