module EmailValidate::Validate

Public Instance Methods

errors() click to toggle source
# File lib/email_validate/validate.rb, line 10
def errors
  self.validate!
end
valid?() click to toggle source
# File lib/email_validate/validate.rb, line 6
def valid?
  self.errors
end

Protected Instance Methods

pattern_valid?() click to toggle source
# File lib/email_validate/validate.rb, line 21
def pattern_valid?
  @email_address =~ Config::DEFAULT_OPTIONS
end
validate!() click to toggle source
# File lib/email_validate/validate.rb, line 16
def validate!
  return false if !pattern_valid?
  true
end