Encodes Ruby hashes, arrays, dates and your own objects into TOON, the token-efficient format for LLM prompts: tables for uniform arrays, quotes only where needed. The only Ruby TOON gem that passes all of the current spec's encode fixtures; its version tracks the spec it implements, and anything it cannot represent raises an error so your data arrives complete.
Required Ruby Version
>= 3.3
Authors
Yevhenii Hurin
Versions
-
4.4.0
-
source
- 4.4.0 source October 10, 2026 (20 KB)
-
-
4.3.0
-
source
- 4.3.0 source October 07, 2026 (20 KB)
-
-
4.1.4
-
source
- 4.1.4 source October 04, 2026 (20 KB)
-
-
4.1.3
-
source
- 4.1.3 source October 04, 2026 (19.5 KB)
-
-
4.1.2
-
source
- 4.1.2 source September 24, 2026 (13 KB)
-