Add a StringSlice class to use in the nodelist.

This commit is contained in:
Dylan Thacker-Smith
2014-02-28 13:16:07 -05:00
parent 03d586aafe
commit cc0276bb97
10 changed files with 193 additions and 12 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module Liquid
end
def increment_used_resources(key, obj)
@resource_limits[key] += if obj.kind_of?(String) || obj.kind_of?(Array) || obj.kind_of?(Hash)
@resource_limits[key] += if obj.kind_of?(StringSlice) || obj.kind_of?(String) || obj.kind_of?(Array) || obj.kind_of?(Hash)
obj.length
else
1