Last active
February 26, 2019 19:50
-
-
Save dankozlowski/43a1e92d089366946446e651ff1f64de to your computer and use it in GitHub Desktop.
Revisions
-
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -18,7 +18,7 @@ def get_string_answer end def process_string_answer(answer) if answer == "y" puts "What kind of software do you work on?" else puts ":/" -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -14,7 +14,7 @@ def get_answer(answer) def get_string_answer puts "Want to chat? y/n" gets end def process_string_answer(answer) -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -14,7 +14,7 @@ def get_answer(answer) def get_string_answer puts "Want to chat? y/n" @answer = gets end def process_string_answer(answer) -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 2 additions and 2 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 @@ -7,7 +7,7 @@ def initialize(answer) def get_answer(answer) r = get_string_answer process_string_answer(r) end private @@ -17,7 +17,7 @@ def get_string_answer gets end def process_string_answer(answer) if answer = "y" puts "What kind of software do you work on?" else -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -21,7 +21,7 @@ def process_answer(answer) if answer = "y" puts "What kind of software do you work on?" else puts ":/" end end end -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -2,7 +2,7 @@ class WantToChatAnswerGetter attr_accessor :answer def initialize(answer) @answer = get_answer(answer) end def get_answer(answer) -
dankozlowski revised this gist
Feb 26, 2019 . 1 changed file with 12 additions and 13 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,28 +1,27 @@ class WantToChatAnswerGetter attr_accessor :answer def initialize(answer) @consent = get_answer(answer) end def get_answer(answer) r = get_string_answer process_consent(r) end private def get_string_answer puts "Want to chat? y/n" gets end def process_answer(answer) if answer = "y" puts "What kind of software do you work on?" else answer ":/" end end end -
dankozlowski created this gist
Feb 26, 2019 .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,28 @@ class WantToChatConsentGetter # Defining the accessor gives us class variables. - dank attr_accessor :dan_consent attr_accessor :firstName_consent def initialize # class variables @dan_consent, @firstName already initialized # as nil - dank r = get_firstName_consent process_consent(r) end private def get_firstName_consent puts "Want to chat? y/n" gets end def process_consent(consent) if r = "y" puts "What kind of software do you work on?" else puts ":/" end end end