/deaf_aunty.rb Secret
Created
September 11, 2015 10:17
-
-
Save benjaminyeo/5022fb23f4a0fbf41cfc to your computer and use it in GitHub Desktop.
Revisions
-
benjaminyeo revised this gist
Sep 11, 2015 . 1 changed file with 21 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,25 @@ def get_input print "Say something" input = gets.chomp end def deaf_aunty sandra = get_input while sandra != "I love ya, aunty, but i've got to go." shout = sandra.upcase if sandra != shout puts "HUH?! SPEAK UP, SANDRA!" sandra = get_input elsif sandra == "" sandra = get_input break if sandra == "" elsif sandra == shout puts "NO, WE CAN'T DO THAT!" sandra = get_input end end end deaf_aunty -
code-division renamed this gist
Sep 22, 2014 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ # Save this file to your computer so you can run it # via the command line (Terminal) like so: # $ ruby deaf_aunty.rb # # Your method should wait for user input, which corresponds # to you saying something to your Aunty. # You'll probably want to write other methods, but this # encapsulates the core Aunty logic def deaf_aunty end # Run our method deaf_aunty -
code-division created this gist
Aug 31, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # Save this file to your computer so you can run it # via the command line (Terminal) like so: # $ ruby deaf_grandma.rb # # Your method should wait for user input, which corresponds # to you saying something to your Grandma. # You'll probably want to write other methods, but this # encapsulates the core Grandma logic def deaf_grandma end # Run our method deaf_grandma