class Checker

Public Class Methods

runcheck(word) click to toggle source
# File lib/priority_patient.rb, line 2
def self.runcheck(word)
        if [ 'Head', 'Spine', 'Shot', 'Heart','Birdflu', 'Sepsis' ].any? {|array| array.include? word }
          return 'Send to hospital'
        elsif [ 'Head', 'Spine', 'Shot', 'Heart','Birdflu', 'Sepsis' ].any? {|array| array.include? word }
        return ''
        elsif [ 'Head', 'Spine', 'Shot', 'Heart','Birdflu', 'Sepsis' ].any? {|array| array.include? word }
        return ''
        else
          return 'Invalid Input'
        end
end