Module: Transproc::Helper

Defined in:
lib/transproc/composer.rb

Overview

Transproc helper that adds `t` method as a shortcut for `Transproc` method

Examples:

include Transproc::Helper

t(:to_string)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.includedObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


14
15
16
17
18
19
20
# File 'lib/transproc/composer.rb', line 14

def self.included(*)
  Transproc::Deprecations.announce(
    'Transproc::Helper',
    'Define your own function registry using Transproc::Registry extension'
  )
  super
end

Instance Method Details

#t(*args, &block) ⇒ Object

See Also:


25
26
27
# File 'lib/transproc/composer.rb', line 25

def t(*args, &block)
  Transproc(*args, &block)
end