Project

cerata

0.0
The project is in a healthy, maintained state
Tabula cerata formatting for floraison and flor, data to string formatting.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.0
 Project Readme

cerata

tests Gem Version

Tabula cerata formatting for floraison and flor, data to string formatting.

Cerata.horizontal_a_to_s(array, indent='')

TODO

Cerata.horizontal_h_to_s(hash, indent='')

TODO

Cerata.vertical_h_to_s(hash, indent='')

TODO

Cerata.table_to_s(array_of_hashes, indent='')

require 'cerata'

a = [
  { name: 'Haddock', age: 52 },
  { name: 'Tintin', age: 31, weight: 60 },
  { name: 'Castafiore', id: 123, age: 59, height: 163 },
  { name: 'Milou', id: 12, age: 3, height: 20 } ]

puts Cerata.table_to_s(a)
  # =>
%{
[
{ name: "Haddock"   , age: 52,                                  },
{ name: "Tintin"    , age: 31, weight: 60,                      },
{ name: "Castafiore", age: 59,             id: 123, height: 163 },
{ name: "Milou"     , age:  3,             id:  12, height:  20 },
]
}

LICENSE

MIT, see LICENSE.txt