Created
September 19, 2013 01:16
-
-
Save bryanaknight/6617966 to your computer and use it in GitHub Desktop.
Tabbed columns
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
def queue_print | |
puts @queue.to_s.upcase | |
puts "LAST_NAME".ljust(15)+"FIRST_NAME".ljust(15)+"EMAIL".ljust(50)+"ZIPCODE".ljust(15)+"CITY".ljust(30)+"STATE".ljust(15)+"ADDRESS".ljust(50)+"PHONE".ljust(15) | |
@queue.each do |row| | |
puts row[:last_name].ljust(15)+row[:first_name].ljust(15)+row[:email_address].ljust(50)+row[:zipcode].ljust(15)+row[:city].ljust(30)+row[:state].ljust(15)+row[:street].ljust(15)+"#{@phonenumber}" | |
end | |
# print @queue[0] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment