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

This commit is contained in:
Dylan Thacker-Smith
2014-03-25 16:16:38 -04:00
parent dc78e565ab
commit 99f950c167
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -7,14 +7,14 @@ module Liquid
def initialize(tag_name, markup, tokens) def initialize(tag_name, markup, tokens)
super super
parse(tokens) parse_body(tokens)
end end
def blank? def blank?
@blank || false @blank || false
end end
def parse(tokens) def parse_body(tokens)
@blank = true @blank = true
@nodelist ||= [] @nodelist ||= []
@nodelist.clear @nodelist.clear
+1 -1
View File
@@ -2,7 +2,7 @@ module Liquid
class Raw < Block class Raw < Block
FullTokenPossiblyInvalid = /\A(.*)#{TagStart}\s*(\w+)\s*(.*)?#{TagEnd}\z/om FullTokenPossiblyInvalid = /\A(.*)#{TagStart}\s*(\w+)\s*(.*)?#{TagEnd}\z/om
def parse(tokens) def parse_body(tokens)
@nodelist ||= [] @nodelist ||= []
@nodelist.clear @nodelist.clear
while token = tokens.shift while token = tokens.shift