class ActiveValidation::Errors::UnsupportedMethodError

Attributes

allowed_methods[R]
value[R]

Public Class Methods

new(value:, allowed_methods:) click to toggle source
Calls superclass method
# File lib/active_validation/errors.rb, line 17
def initialize(value:, allowed_methods:)
  super
  @value = value
  @allowed_methods = allowed_methods
end

Public Instance Methods

to_s() click to toggle source
# File lib/active_validation/errors.rb, line 23
def to_s
  "You provided #{value.inspect} while supported are only #{allowed_methods.inspect}"
end