class Dryv::Rules::MinLength

Public Instance Methods

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