class Liquid::Tag

Attributes

line_number[R]
nodelist[R]
options[R]
parse_context[R]
tag_name[R]

Public Class Methods

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

Public Instance Methods

blank?() click to toggle source
# File lib/liquid/tag.rb, line 39
def blank?
  false
end
name() click to toggle source
# File lib/liquid/tag.rb, line 31
def name
  self.class.name.downcase
end
parse(_tokens) click to toggle source
# File lib/liquid/tag.rb, line 24
def parse(_tokens)
end
raw() click to toggle source
# File lib/liquid/tag.rb, line 27
def raw
  "#{@tag_name} #{@markup}"
end
render(_context) click to toggle source
# File lib/liquid/tag.rb, line 35
def render(_context)
  ''.freeze
end