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

#line, #nodelist, #options, #warnings

Instance Method Summary collapse

Methods inherited from Block

#blank?, #block_name, #create_variable, #end_tag, #parse, #render, #unknown_tag, #warnings

Methods inherited from Tag

#blank?, #name, new_with_options, #parse, #parse_with_selected_parser, #render

Constructor Details

#initialize(tokens, options = {}) ⇒ Document

we don’t need markup to open this block



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

def initialize(tokens, options = {})
  @options = options
  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 delimiter



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

def block_delimiter
  []
end