class Dry::Rules::MaxLength

Public Instance Methods

name() click to toggle source
# File lib/dry/rules/max_length.rb, line 12
def name
  'max_length'
end
valid?() click to toggle source
# File lib/dry/rules/max_length.rb, line 5
def valid?
  return true if left.size <= right
  add_error
  false
end