https://github.com/floraison/cerata
tabula cerata formatting for floraison and flor
https://github.com/floraison/cerata
Last synced: 4 months ago
JSON representation
tabula cerata formatting for floraison and flor
- Host: GitHub
- URL: https://github.com/floraison/cerata
- Owner: floraison
- License: mit
- Created: 2024-12-31T07:29:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T10:05:14.000Z (over 1 year ago)
- Last Synced: 2025-06-10T05:07:03.108Z (about 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cerata
[](https://github.com/floraison/cerata/actions)
[](https://badge.fury.io/rb/cerata)
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='')`
```ruby
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](LICENSE.txt)