gen_email.rb
# Verify that the digits are correctly entered, it will not allow more then 7 digits entered at a time.
Verify that the digits are correctly entered, it will not allow more then 7 digits entered at a time.
Verify that the digits are correctly entered it will not allow more then 7 digits entered at a time .
def verify_digits(int)
  begin
    if !(int[/^\d{7}$/])
      raise TicketNumError
    else
      int
    end
  rescue TicketNumError
    '<Invalid ticket number>'
  end
end
def verify_digits ( int ) begin if ! ( int [ / ^ \d {7}$ / ] ) raise TicketNumError else int end rescue TicketNumError '<Invalid ticket number>' end end
Verify that the digits are correctly entered, it will not allow more then 7 digits entered at a time.
Verify that the digits are correctly entered it will not allow more then 7 digits entered at a time .
int
<not_specific>