lib/iz.rb in iz-0.1.0 vs lib/iz.rb in iz-0.2.0
- old
+ new
@@ -3,19 +3,24 @@
require 'iz/alphanumeric'
require 'iz/phone_number'
require 'iz/credit_card'
require 'iz/hexadecimal'
require 'iz/binary'
+require 'iz/email'
require 'iz/mac'
require 'iz/url'
module Iz
def self.credit_card?(cc)
!!Iz::CreditCard.is_credit_card?(cc)
end
def self.hexadecimal?(hexadecimal)
!!Iz::Hexadecimal.is_hexadecimal?(hexadecimal)
+ end
+
+ def self.email?(email)
+ !!Iz::Email.is_email?(email)
end
def self.binary?(binary)
!!Iz::Binary.is_binary?(binary)
end