Skip to content

Instantly share code, notes, and snippets.

class EightBall
def response
response_array = ["Signs point to yes",
"Signs point to no",
"AHAHAHAHA!",
"Outlook is positive",
"No way Jose!"]
response_num = rand(response_array.length)
puts response_output = response_array[response_num]