valkyrie icon indicating copy to clipboard operation
valkyrie copied to clipboard

Simplify ValueMappers

Open escowles opened this issue 7 years ago • 0 comments

Many of the ValueMapper implementations seem very boilerplate-repetitive. Many of them differ only in a few key details, e.g., the prefix used to identify the value, the method to convert values from Strings.

Could we create a ValueMapper base class or DSL that simplified e.g., a ValueMapper that supported integers, to something like value_mapper :integer, :to_i ?

escowles avatar Aug 11 '18 11:08 escowles