Exception: Marty::BaseRuleView::DupKeyError

Inherits:
StandardError
  • Object
show all
Defined in:
app/components/marty/base_rule_view.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, lineno) ⇒ DupKeyError

Returns a new instance of DupKeyError.



53
54
55
56
# File 'app/components/marty/base_rule_view.rb', line 53

def initialize(key, lineno)
  @key    = key
  @lineno = lineno
end

Instance Method Details

#messageObject



58
59
60
# File 'app/components/marty/base_rule_view.rb', line 58

def message
  "keyword '#{@key}' specified more than once (line #{@lineno})"
end