Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/validatr/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#valid_damm?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/validatr/ext/string.rb', line 12

def valid_damm?
  Validatr::Damm.valid? self
end

#valid_luhn?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/validatr/ext/string.rb', line 4

def valid_luhn?
  Validatr::Luhn.valid? self
end

#valid_verhoeff?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/validatr/ext/string.rb', line 8

def valid_verhoeff?
  Validatr::Verhoeff.valid? self
end