mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Rename Block#parse to parse_body since that is how it is being used.
This commit is contained in:
@@ -7,14 +7,14 @@ module Liquid
|
||||
|
||||
def initialize(tag_name, markup, tokens)
|
||||
super
|
||||
parse(tokens)
|
||||
parse_body(tokens)
|
||||
end
|
||||
|
||||
def blank?
|
||||
@blank || false
|
||||
end
|
||||
|
||||
def parse(tokens)
|
||||
def parse_body(tokens)
|
||||
@blank = true
|
||||
@nodelist ||= []
|
||||
@nodelist.clear
|
||||
|
||||
@@ -2,7 +2,7 @@ module Liquid
|
||||
class Raw < Block
|
||||
FullTokenPossiblyInvalid = /\A(.*)#{TagStart}\s*(\w+)\s*(.*)?#{TagEnd}\z/om
|
||||
|
||||
def parse(tokens)
|
||||
def parse_body(tokens)
|
||||
@nodelist ||= []
|
||||
@nodelist.clear
|
||||
while token = tokens.shift
|
||||
|
||||
Reference in New Issue
Block a user