Module: Transproc::Functions

Overview

Function container extension

Examples:

module MyTransformations
  extend Transproc::Functions

  def boom!(value)
    "#{value} BOOM!"
  end
end

Transproc(:boom!)['w00t!'] # => "w00t! BOOM!"

Instance Method Summary collapse

Instance Method Details

#method_added(meth) ⇒ Object



61
62
63
64
# File 'lib/transproc.rb', line 61

def method_added(meth)
  module_function meth
  Transproc.register(meth, method(meth))
end