class Liquid::Tag

Attributes

line_number[RW]
nodelist[R]
options[RW]
warnings[R]

Public Class Methods

new(tag_name, markup, options) click to toggle source
# File lib/liquid/tag.rb, line 17
def initialize(tag_name, markup, options)
  @tag_name   = tag_name
  @markup     = markup
  @options    = options
end
parse(tag_name, markup, tokens, options) click to toggle source
# File lib/liquid/tag.rb, line 8
def parse(tag_name, markup, tokens, options)
  tag = new(tag_name, markup, options)
  tag.parse(tokens)
  tag
end

Public Instance Methods

blank?() click to toggle source
# File lib/liquid/tag.rb, line 38
def blank?
  false
end
name() click to toggle source
# File lib/liquid/tag.rb, line 30
def name
  self.class.name.downcase
end
parse(tokens) click to toggle source
# File lib/liquid/tag.rb, line 23
def parse(tokens)
end
raw() click to toggle source
# File lib/liquid/tag.rb, line 26
def raw
  "#{@tag_name} #{@markup}"
end
render(context) click to toggle source
# File lib/liquid/tag.rb, line 34
def render(context)
  ''.freeze
end