Module: Hippo::LiquidFilters
- Defined in:
- lib/hippo/liquid_filters.rb
Instance Method Summary collapse
Instance Method Details
#indent(text, depth = 2) ⇒ Object
5 6 7 8 9 |
# File 'lib/hippo/liquid_filters.rb', line 5 def indent(text, depth = 2) text.split("\n").map.each_with_index do |p, i| i == 0 ? p : ' ' * depth + p end.join("\n") end |
#multiline(text) ⇒ Object
11 12 13 |
# File 'lib/hippo/liquid_filters.rb', line 11 def multiline(text) text.inspect end |