Sha256: 26584249a3a0143902800190c4b98adfed515ff2e654193940db00917e62ea61
Contents?: true
Size: 406 Bytes
Versions: 20
Compression:
Stored size: 406 Bytes
Contents
module Representable # Allows to implement a pipeline of filters where a value gets passed in and the result gets # passed to the next callable object. # # Note: this is still experimental. class Pipeline < Array include Uber::Callable # include Representable::Cloneable def call(context, value, *args) inject(value) { |memo, block| block.call(memo, *args) } end end end
Version data entries
20 entries across 20 versions & 1 rubygems