Sha256: ce6c077e3af85c5b0878302f114de4d8bdc7300a8b7ee60c963692a1ea9a2de9

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

require 'iz/version'

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

  def self.mac?(mac)
    !!Iz::Mac.is_mac?(mac)
  end

  def self.url?(url)
    !!Iz::Url.is_url?(url)
  end

  def self.alphanumeric?(alpha)
    !!Iz::Alphanumeric.is_alphanumeric?(alpha)
  end

  def self.phone_number?(phone_number)
    !!Iz::PhoneNumber.is_phone_number?(phone_number)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iz-0.2.1 lib/iz.rb
iz-0.2.0 lib/iz.rb