Module: Spalt::Validator

Defined in:
lib/splat/validator.rb

Instance Method Summary collapse

Instance Method Details

#valid_phone?(number) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/splat/validator.rb', line 5

def valid_phone?(number)
  number.to_s =~ number_format_regx
end

#valid_phones?(numbers) ⇒ Boolean

Returns:

  • (Boolean)


9
10
# File 'lib/splat/validator.rb', line 9

def valid_phones?(numbers)
end