mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Move tests for VariableLookup
This commit is contained in:
@@ -110,11 +110,12 @@ module Liquid
|
||||
def to_s
|
||||
str = name.dup
|
||||
lookups.each do |lookup|
|
||||
if lookup.instance_of?(String)
|
||||
str += '.' + lookup
|
||||
else
|
||||
str += '[' + lookup.to_s + ']'
|
||||
end
|
||||
str +=
|
||||
if lookup.instance_of?(String)
|
||||
'.' + lookup
|
||||
else
|
||||
'[' + lookup.to_s + ']'
|
||||
end
|
||||
end
|
||||
str
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user