Download .rb

Download As from the toolbar.

Use Download As on the toolbar.

Goal

Puts a one-file kiosk summary.

rows = [
  { city: "Nairobi", units: 12 },
  { city: "Kisumu", units: 5 },
]
total = rows.reduce(0) { |acc, r| acc + r[:units] }
puts "cities #{rows.length}"
puts "units #{total}"
puts "Download As → .rb from the toolbar"