Class: Liquid::Document

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

Constant Summary

Constants inherited from Block

Block::ContentOfVariable, Block::FullToken, Block::TAGSTART, Block::VARSTART

Instance Attribute Summary

Attributes inherited from Tag

#line_number, #nodelist, #options, #warnings

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Block

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

Methods inherited from Tag

#blank?, #initialize, #name, #parse, #raw, #render

Methods included from ParserSwitching

#parse_with_selected_parser

Constructor Details

This class inherits a constructor from Liquid::Tag

Class Method Details

.parse(tokens, options = {}) ⇒ Object



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

def self.parse(tokens, options={})
  # we don't need markup to open this block
  super(nil, nil, tokens, options)
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 delimiter



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

def block_delimiter
  []
end