Skip to content

Instantly share code, notes, and snippets.

@RonanLOUARN
Created October 4, 2016 15:43
Show Gist options
  • Save RonanLOUARN/c3b4bf123ca7878879d8f43b5e976844 to your computer and use it in GitHub Desktop.
Save RonanLOUARN/c3b4bf123ca7878879d8f43b5e976844 to your computer and use it in GitHub Desktop.
def coach_answer(your_message)
# TODO: return coach answer to your_message
if your_message.include? "?"
"Silly question, get dressed and go to work!"
else
"I don't care, get dressed and go to work!"
end
end
def coach_answer_enhanced(your_message)
# TODO: return coach answer to your_message, with additional custom rules of yours!
if your_message == your_message.upcase
"I can feel your motivation! " + coach_answer(your_message)
else
coach_answer(your_message)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment