Files
liquid/lib/liquid/tag.rb
Florian Weingarten 3372ca8136 Rubocop
2015-05-14 14:37:18 +00:00

43 lines
696 B
Ruby

module Liquid
class Tag
attr_accessor :options, :line_number
attr_reader :nodelist, :warnings
include ParserSwitching
class << self
def parse(tag_name, markup, tokens, options)
tag = new(tag_name, markup, options)
tag.parse(tokens)
tag
end
private :new
end
def initialize(tag_name, markup, options)
@tag_name = tag_name
@markup = markup
@options = options
end
def parse(_tokens)
end
def raw
"#{@tag_name} #{@markup}"
end
def name
self.class.name.downcase
end
def render(_context)
''.freeze
end
def blank?
false
end
end
end