What is Ruby?

A Ruby array of hashes with symbol keys.

Who uses it

Rails seed files and Ruby scripts.

Writing Ruby

Column names are converted to valid symbol names, which means non-word characters become underscores.

What it can hold

Ruby is source code. An array of hashes with symbol keys, which means column names become valid symbol names. A machine can read the table back out of it without guessing, which is what makes it safe to convert into and out of.

It keeps

It cannot express

What it looks like

Example Ruby
staff = [
  { id: '007', name: 'Halima Yusuf', role: 'Analyst, data', started: '2024-03-15', hours: '38.5' },
  { id: '012', name: 'Jonah "Jo" Pryce', role: 'Engineer', started: '2025-11-02', hours: '' },
  { id: '104', name: 'Wei Chen', role: 'Manager', started: '2023-06-30', hours: '40' },
]

Questions

How do I open Ruby files?

Ruby is written by Tablizer rather than read by it. Open the file in whichever tool the format belongs to.

Is Ruby a good format for sharing data?

It depends who is receiving it. Rails seed files and Ruby scripts. If the recipient is outside that group, a plain CSV travels further than anything else.

Convert something else to Ruby