Module: Transproc::Helper
- Defined in:
- lib/transproc/composer.rb
Overview
Transproc helper that adds ‘t` method as a shortcut for `Transproc` method
Class Method Summary collapse
- .included ⇒ Object private
Instance Method Summary collapse
Class Method Details
.included ⇒ Object
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
25 26 27 |
# File 'lib/transproc/composer.rb', line 25 def t(*args, &block) Transproc(*args, &block) end |