Module: Liquid::Pry::Filter
- Defined in:
- lib/liquid/pry/filter.rb
Overview
pry
filter hooks Pry into filter chain in a Liquid template. User can inspect or modify filter input and rendering context via convenient input
and context
local variables.
The filter returns its input, hence it can be placed anywhere in the filter chain, not necessarily at the end. If user alters the input
variable, then modified version is returned.
Instance Method Summary collapse
Instance Method Details
#pry(input) ⇒ Object
18 19 20 21 22 |
# File 'lib/liquid/pry/filter.rb', line 18 def pry(input) context = @context binding.pry input end |