class ValidationProfiler::Exceptions::ValidationRuleAlreadyExists

Public Class Methods

new(key) click to toggle source
# File lib/validation_profiler/exceptions/validation_rule_already_exists.rb, line 5
def initialize(key)
  @key = key
end

Public Instance Methods

to_s() click to toggle source
# File lib/validation_profiler/exceptions/validation_rule_already_exists.rb, line 9
def to_s
  key = @key
  "A Rule has already been registered for the key: #{key}."
end