dry-transformer
dry-transformer copied to clipboard
Data transformation toolkit
Another Ruby 3 related patch: now that keyword arguments are no longer implicitly translated into hashes, we need to explicitly handle them as a separate argument type. And I must...
## Describe the bug The error reporting when a function is wrongly composed is not useful. ## To Reproduce Let's take the example from the documentation ```ruby require 'dry/transformer' class...
https://dry-rb.org/gems/dry-transformer/0.1/built-in-transformations/ links to builtin transformation docs are not valid ![image](https://user-images.githubusercontent.com/153103/126128747-730ac010-cbef-4209-962d-12ea8e557135.png)
Take this example: ```ruby # example.rb require "dry/transformer" module F extend Dry::Transformer::Registry def self.constantly(n) n end def self.square(n) n ** 2 end end def F(*args) F[*args] end f = F(:constantly,...
Provide an example in the user documentation for short pipe definition + provide helper function to make it possible. `Dry::Transformer` introduced the idea of wrapping transformation into classes, which I...