Sha256: 9bd241663a914dcc530c7a24277679d34cacfb5ea21b03b168f51ac16751a395

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

$: << File.dirname(__FILE__)
require "email_validate/version"
require 'email_validate/validate'

module EmailValidate
  class Email

    include Validate

    def initialize(email = '')
      self.email_address = email
    end

    def to_s
      email_address
    end

    def email_address
      @email_address.to_s.strip
    end

    def email_address=(new_email_address)
      @email_address = new_email_address.to_s
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_validate-0.0.1 lib/email_validate.rb