module Gadgeto::Email::Validators
Public Instance Methods
email?(email)
click to toggle source
# File lib/gadgeto/email/validators.rb, line 4 def email?(email) !!(email =~ /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i) end