Sha256: 74305c57b06108c7d8699c003e2a2984daf8527ac7375e9a4c5a36e713df5801
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true module Transproc # Function container extension # # @example # module MyTransformations # extend Transproc::Functions # # def boom!(value) # "#{value} BOOM!" # end # end # # Transproc(:boom!)['w00t!'] # => "w00t! BOOM!" # # @api public module Functions def self.extended(mod) warn 'Transproc::Functions is deprecated please switch to Transproc::Registry' super end def method_added(meth) module_function meth Transproc.register(meth, method(meth)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
transproc-1.1.1 | lib/transproc/functions.rb |
transproc-1.1.0 | lib/transproc/functions.rb |