Module: Dry::Transformer::ProcTransformations
- Extended by:
- Registry
- Defined in:
- lib/dry/transformer/proc_transformations.rb
Overview
Transformation functions for Procs
Class Method Summary collapse
-
.bind(value, binding, fn) ⇒ Proc
Change the binding for the given function.
Methods included from Registry
[], contain?, fetch, import, register, store
Class Method Details
.bind(value, binding, fn) ⇒ Proc
Change the binding for the given function
41 42 43 |
# File 'lib/dry/transformer/proc_transformations.rb', line 41 def self.bind(value, binding, fn) binding.instance_exec(value, &fn) end |