Sha256: c14e8d4aa4032813938cd6741ba3d0058806d792407012a1d2e32d6c66e5dfea
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
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 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-0.2.4 | lib/transproc/functions.rb |
transproc-0.2.3 | lib/transproc/functions.rb |