Class: Liquid::Document

Inherits:
Block show all
Defined in:
lib/liquid/document.rb

Constant Summary

Constants inherited from Block

Block::ContentOfVariable, Block::FullToken, Block::IsTag, Block::IsVariable

Instance Attribute Summary

Attributes inherited from Tag

#context, #nodelist

Instance Method Summary collapse

Methods inherited from Block

#block_name, #create_variable, #end_tag, #parse, #render, #unknown_tag

Methods inherited from Tag

#name, #parse, #render

Constructor Details

#initialize(tokens, context) ⇒ Document

we don’t need markup to open this block



4
5
6
7
# File 'lib/liquid/document.rb', line 4

def initialize(tokens, context)
  @context        = context
  parse(tokens)
end

Instance Method Details

#assert_missing_delimitation!Object

Document blocks don’t need to be terminated since they are not actually opened



15
16
# File 'lib/liquid/document.rb', line 15

def assert_missing_delimitation!
end

#block_delimiterObject

There isn’t a real delimter



10
11
12
# File 'lib/liquid/document.rb', line 10

def block_delimiter
  []
end