Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.47 KB | None | 0 0
  1. info = <<-eos
  2. Shipper: #{shipper+" on "+stripdate.to_s}
  3. Address: #{address}
  4. City: #{city}
  5. Pieces:#{pieces}
  6. Weight: #{weight}
  7. Going To: #{goingto}
  8. Ready: #{ready}
  9. Close: #{close}
  10. Caller: #{caller}
  11. Telephone No.: #{tele}
  12. eos
  13.  
  14. puts info.gsub /^$\n/, ''
  15. #why does this code output like this:
  16.  
  17. Shipper: f
  18.  on 10/22/2012
  19. Address: f
  20. City: f
  21. Pieces:f
  22. Weight: f
  23. Going To: f
  24. Ready: f
  25. Close: f
  26. Caller: f
  27. Telephone No.: f
  28.  
  29. #I want the first 2 lines on the same line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement