class Check
Public Class Methods
runcheck(key_word)
click to toggle source
# File lib/suggest_action.rb, line 2 def self.runcheck(key_word) if [ 'Head', 'Spine', 'Shot', 'Heart','Birdflu', 'Sepsis' ].any? {|array| array.include? key_word } return 'Send to hospital' else return 'Treat locally' end end