Sha256: 43811db878c8daefc1305283dc2da08add3ea94543d87189cba225a52d6a21fc

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
locomotivecms-liquid-4.0.0 lib/liquid/tag.rb
liquid-3.0.6 lib/liquid/tag.rb
liquid-3.0.5 lib/liquid/tag.rb
liquid-3.0.4 lib/liquid/tag.rb
liquid-3.0.3 lib/liquid/tag.rb
liquid-3.0.2 lib/liquid/tag.rb
locomotivecms-liquid-4.0.0.alpha2 lib/liquid/tag.rb
locomotivecms-liquid-4.0.0.alpha1 lib/liquid/tag.rb
locomotivecms-liquid-4.0.0.alpha lib/liquid/tag.rb
liquid-3.0.1 lib/liquid/tag.rb
liquid-3.0.0 lib/liquid/tag.rb