module Codecal::Validation

Public Instance Methods

all_digits?(str) click to toggle source
# File lib/lib/validation.rb, line 7
def all_digits?(str)
  str[/[0-9]+/]  == str
end
all_letters_or_digits?(str) click to toggle source
# File lib/lib/validation.rb, line 3
def all_letters_or_digits?(str)
  str[/[a-zA-Z0-9]+/]  == str
end