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.
A Ruby array of hashes with symbol keys.
Rails seed files and Ruby scripts.
Column names are converted to valid symbol names, which means non-word characters become underscores.
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.
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' },
]Ruby is written by Tablizer rather than read by it. Open the file in whichever tool the format belongs to.
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.