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.



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

#messageObject



45
46
47
# File 'app/components/marty/base_rule_view.rb', line 45

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