Thanks for all the feedback! It's greatly appreciated.


________________________________
 From: Spencer Eldred <notifications@github.com>
To: wdi-sf-march-2014/HappiTailsMiniProject <HappiTailsMiniProject@noreply.github.com> 
Cc: Joshua-Pearson <j_d_pearson@yahoo.com> 
Sent: Thursday, April 17, 2014 1:08 PM
Subject: Re: [HappiTailsMiniProject] HappiTails! (#17)
 


In main.rb:
> +	          pet_name = gets.chomp.capitalize
> +	          puts "Thank you, #{client_name} is now the proud owner of #{pet_name}."
> +	          $shelter.adopt(client_name, pet_name)
> +	          puts $shelter.to_s
> +	        when "6"
> +	          puts "We're sorry that an animal is being returned.\n"
> +	          puts "Please enter the animal being returned."
> +	      	  pet_name = gets.chomp.capitalize
> +		  puts "Please enter the name of the client who is returning the animal." 
> +		  client_name = gets.chomp.capitalize
> +		  puts "Thank you, #{pet_name} has now been put back into the shelter database."
> +	          $shelter.return(client_name, pet_name)
> +		when "Q"
> +		  puts "Thank you for using the Happitails app."
> +	end
> + 
One additional comment. All the code within each of your "when" blocks of the case statement could be taken out and put into a method. That way the case statement would be made up of a bunch of method calls. It makes the code neater. :)
when "1"
call_method_1()
when "2"
call_method_2()
—
Reply to this email directly or view it on GitHub.