class Eyemask::Liquid::Indent

Public Class Methods

new(tag_name, markup, tokens) click to toggle source
Calls superclass method
# File lib/eyemask/liquid/indent.rb, line 7
def initialize(tag_name, markup, tokens)
  super
  @indentation = markup.to_i
end

Public Instance Methods

render(context) click to toggle source
Calls superclass method
# File lib/eyemask/liquid/indent.rb, line 12
def render(context)
  prefix = " " * @indentation
  super.gsub(/^/, prefix)
end