Sha256: 0cca64219b5a0333c003abab7ec09a447a77254549ae6cab057b456e21d7b7bc

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

require 'email_validate/validator'

module EmailValidate
  module Validate

    def valid?
      self.errors
    end

    def errors
      self.validate!
    end

    protected

    def validate!
      return false if !pattern_valid?
      true
    end

    def pattern_valid?
      @email_address =~ Config::DEFAULT_OPTIONS
    end


  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_validate-0.0.1 lib/email_validate/validate.rb