Method: Liquid::StrainerTemplate#invoke
- Defined in:
- lib/liquid/strainer_template.rb
#invoke(method, *args) ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/liquid/strainer_template.rb', line 50 def invoke(method, *args) if self.class.invokable?(method) send(method, *args) elsif @context.strict_filters raise Liquid::UndefinedFilter, "undefined filter #{method}" else args.first end rescue ::ArgumentError => e raise Liquid::ArgumentError, e., e.backtrace end |