Skip to content
Browse files

Updated Git for Primer PDF and Chat class

  • Loading branch information...
1 parent 2804a69 commit a1c5847cd63ce2d65724977a5415021ec106ddf1 @newfront committed Nov 7, 2010
Showing with 6 additions and 0 deletions.
  1. BIN a_ruby_primer/A Ruby Primer.pdf
  2. +6 −0 rails_primer_code/Chat/Chat.rb
View
BIN a_ruby_primer/A Ruby Primer.pdf
Binary file not shown.
View
6 rails_primer_code/Chat/Chat.rb
@@ -61,6 +61,12 @@ def create_chat_server
def respond_to_message(message, user)
puts "Got a message of '#{message}' from the User #{user.inspect}"
+ case message
+ when "login"
+ puts "User wishes to login"
+ break
+
+ end
# use the case Condition to respond to different requests
# login
# logout

0 comments on commit a1c5847

Please sign in to comment.
Something went wrong with that request. Please try again.