Sha256: 88a0942fe334ef681757cbcd6c5831bd112943a206e579cb67d72a5681d2e186

Contents?: true

Size: 210 Bytes

Versions: 11

Compression:

Stored size: 210 Bytes

Contents

class IncorrectEmailFormat
  def validate(form, key)
    return unless form[key]
    return if form[key]['@']
    form.invalid(key, IncorrectEmailFormatError.new)
  end
end


class IncorrectEmailFormatError
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
starapor-slippers-0.0.2 examples/forms/model/registration_rules/incorrect_email_format.rb
starapor-slippers-0.0.3 examples/forms/model/registration_rules/incorrect_email_format.rb
starapor-slippers-0.0.5 examples/forms/model/registration_rules/incorrect_email_format.rb
starapor-slippers-0.0.6 examples/forms/model/registration_rules/incorrect_email_format.rb
starapor-slippers-0.0.8 examples/forms/model/registration_rules/incorrect_email_format.rb
starapor-slippers-0.0.9 examples/forms/model/registration_rules/incorrect_email_format.rb
slippers-0.0.14 examples/forms/model/registration_rules/incorrect_email_format.rb
slippers-0.0.13 examples/forms/model/registration_rules/incorrect_email_format.rb
slippers-0.0.12 examples/forms/model/registration_rules/incorrect_email_format.rb
slippers-0.0.11 examples/forms/model/registration_rules/incorrect_email_format.rb
slippers-0.0.10 examples/forms/model/registration_rules/incorrect_email_format.rb