Created
October 11, 2013 15:16
-
-
Save TrevMcKendrick/6936495 to your computer and use it in GitHub Desktop.
This file contains 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
first_line = ["Trevor","Breanna","Annelise","Daniel","Curtis","Robert"] | |
def take_a_number(line,new_customer) | |
line << new_customer | |
first_line = line.length | |
end | |
def now_serving(line) | |
puts "Currently serving " + line.pop | |
end | |
def line(line) | |
line.each_with_index do |person, index| | |
puts "#{index+1}. #{person}" | |
end | |
end | |
line(first_line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment