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

#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) ⇒ Document

we don’t need markup to open this block



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

def initialize(tokens)
  parse(tokens)
end

Instance Method Details

#assert_missing_delimitation!Object

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



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

def assert_missing_delimitation!
end

#block_delimiterObject

There isn’t a real delimter



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

def block_delimiter
  []
end