Module: Dry::Transformer
- Defined in:
- lib/dry/transformer.rb,
lib/dry/transformer/pipe.rb,
lib/dry/transformer/error.rb,
lib/dry/transformer/store.rb,
lib/dry/transformer/version.rb,
lib/dry/transformer/compiler.rb,
lib/dry/transformer/function.rb,
lib/dry/transformer/pipe/dsl.rb,
lib/dry/transformer/registry.rb,
lib/dry/transformer/coercions.rb,
lib/dry/transformer/composite.rb,
lib/dry/transformer/constants.rb,
lib/dry/transformer/recursion.rb,
lib/dry/transformer/conditional.rb,
lib/dry/transformer/hash_transformations.rb,
lib/dry/transformer/pipe/class_interface.rb,
lib/dry/transformer/proc_transformations.rb,
lib/dry/transformer/array_transformations.rb,
lib/dry/transformer/class_transformations.rb,
lib/dry/transformer/array_transformations/combine.rb
Defined Under Namespace
Modules: ArrayTransformations, ClassTransformations, Coercions, Conditional, HashTransformations, ProcTransformations, Recursion, Registry Classes: Compiler, Composite, Function, FunctionNotFoundError, Pipe, Store
Constant Summary collapse
- Error =
Class.new(StandardError)
- FunctionAlreadyRegisteredError =
Class.new(Error)
- VERSION =
"1.0.1"
- Undefined =
Object.new.freeze
Class Method Summary collapse
Class Method Details
.[](registry) ⇒ Object
12 13 14 |
# File 'lib/dry/transformer.rb', line 12 def self.[](registry) Pipe[registry] end |
.loader ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dry/transformer.rb', line 17 def self.loader @loader ||= Zeitwerk::Loader.new.tap do |loader| root = File.("..", __dir__) loader.tag = "dry-transformer" loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-transformer.rb") loader.push_dir(root) loader.ignore( "#{root}/dry-transformer.rb", "#{root}/dry/transformer/{constants,error,version}.rb" ) loader.inflector.inflect("dsl" => "DSL") end end |