mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 17:25:41 +03:00
By moving parse out of the initializer, we can call super at the start of the initializers for subclasses, and avoid the nasty allocate hack.
18 lines
391 B
Ruby
18 lines
391 B
Ruby
module Liquid
|
|
class Document < Block
|
|
def self.parse(tokens, options={})
|
|
# we don't need markup to open this block
|
|
super(nil, nil, tokens, options)
|
|
end
|
|
|
|
# There isn't a real delimiter
|
|
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
|