b18c6d4581
0.7.0 (2020-12-29) Added * Add HashConverters for transforming string into hash of string, integer, float or boolean values * Add converters for transforming string to array of booleans, integers, floats and numeric Changed * Change StringToRange converter to work with decimal numbers and spaces * Change :strict to be a keyword argument * Change StringToNumeric converter to allow numbers with space characters
21 lines
679 B
Text
21 lines
679 B
Text
Necromancer
|
|
|
|
> Conversion from one object type to another with a bit of black magic.
|
|
|
|
Necromancer provides independent type conversion component for [TTY]
|
|
(https://github.com/piotrmurach/tty) toolkit.
|
|
|
|
## Motivation
|
|
|
|
Conversion between Ruby core types frequently comes up in projects but is
|
|
solved by half-baked solutions. This library aims to provide an independent
|
|
and extensible API to support a robust and generic way to convert between
|
|
core Ruby types.
|
|
|
|
## Features
|
|
|
|
* Simple and expressive API
|
|
* Ability to specify own converters
|
|
* Ability to compose conversions out of simpler ones
|
|
* Support conversion of custom defined types
|
|
* Ability to specify strict conversion mode
|