Sha256: b2df0f7ee87f05ac6c9d1616359b9fb33a40a5e4785e6fccbed28e44ce5ec6c5

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

module Liquid
  class Document < Block
    # we don't need markup to open this block
    def initialize(tokens, context)
      @context        = context
      parse(tokens)
    end

    # There isn't a real delimter
    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

5 entries across 5 versions & 1 rubygems

Version Path
locomotive_liquid-2.4.2 lib/liquid/document.rb
locomotive_liquid-2.4.1 lib/liquid/document.rb
locomotive_liquid-2.2.3 lib/liquid/document.rb
locomotive_liquid-2.2.2 lib/liquid/document.rb
locomotive_liquid-2.1.3 lib/liquid/document.rb