Module: Valideez::Common
Instance Method Summary collapse
Instance Method Details
#validate_format ⇒ Object
3 4 5 |
# File 'lib/valideez/common.rb', line 3 def validate_format not (format =~ val).nil? end |
#validate_length ⇒ Object
7 8 9 |
# File 'lib/valideez/common.rb', line 7 def validate_length length == val.size end |