Skip to content

Instantly share code, notes, and snippets.

@vanmichael
Last active December 29, 2015 05:39
Show Gist options
  • Select an option

  • Save vanmichael/7623761 to your computer and use it in GitHub Desktop.

Select an option

Save vanmichael/7623761 to your computer and use it in GitHub Desktop.
Phase 1
#Echo Phase 1
class Echo
def initialize
get_input
play_back(@input)
end
def get_input
puts "What do you want to say?"
@input = gets.chomp
end
def play_back(response)
puts "You said: #{response}"
end
end
Echo.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment