Created
October 11, 2013 16:07
-
-
Save irmiller22/6937485 to your computer and use it in GitHub Desktop.
katz_deli
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 characters
| katz_deli = [] | |
| def take_a_number(queue, name) | |
| count = (queue.count + 1) | |
| queue << "#{count}. #{name} " | |
| puts "The line is currently: " | |
| line(queue) | |
| end | |
| def line(queue) | |
| print "#{queue} " | |
| end | |
| def now_serving(queue) | |
| print "#{queue[0]}" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment