mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Replace Context[]'s Expression.parse with Parser#expression
This commit is contained in:
@@ -175,7 +175,8 @@ module Liquid
|
||||
# Example:
|
||||
# products == empty #=> products.empty?
|
||||
def [](expression)
|
||||
evaluate(Expression.parse(expression, @string_scanner))
|
||||
@string_scanner.string = expression
|
||||
evaluate(Parser.new(@string_scanner).expression)
|
||||
end
|
||||
|
||||
def key?(key)
|
||||
|
||||
Reference in New Issue
Block a user