Rename Block#parse to parse_body since that is how it is being used.

This commit is contained in:
Dylan Thacker-Smith
2014-02-27 23:16:11 -05:00
parent 7eb64886dc
commit 99cebf74bc
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -3,7 +3,7 @@ module Liquid
# we don't need markup to open this block
def initialize(tokens, options = {})
@options = options
parse(tokens)
parse_body(tokens)
end
# There isn't a real delimiter
+1 -1
View File
@@ -2,7 +2,7 @@ module Liquid
class Raw < Block
FullTokenPossiblyInvalid = /\A(.*)#{TagStart}\s*(\w+)\s*(.*)?#{TagEnd}\z/o
def parse(tokens)
def parse_body(tokens)
@nodelist ||= []
@nodelist.clear
while token = tokens.shift