Sha256: 3f66faed19a8a8732df391249c0bc74c140719bd0e4011b2f7b726c2dfb91018

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

module Liquid
  class Document < Block
    def self.parse(tokens, options={})
      # we don't need markup to open this block
      super(nil, nil, tokens, options)
    end

    # There isn't a real delimiter
    def block_delimiter
      []
    end

    # Document blocks don't need to be terminated since they are not actually opened
    def assert_missing_delimitation!
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
liquid-3.0.6 lib/liquid/document.rb
liquid-3.0.5 lib/liquid/document.rb
liquid-3.0.4 lib/liquid/document.rb
liquid-3.0.3 lib/liquid/document.rb
liquid-3.0.2 lib/liquid/document.rb
liquid-3.0.1 lib/liquid/document.rb
liquid-3.0.0 lib/liquid/document.rb
liquid-3.0.0.rc1 lib/liquid/document.rb