Skip to content

Instantly share code, notes, and snippets.

@irmiller22
Created October 11, 2013 16:07
Show Gist options
  • Save irmiller22/6937485 to your computer and use it in GitHub Desktop.
Save irmiller22/6937485 to your computer and use it in GitHub Desktop.
katz_deli
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