From 9ef6f9b642dfc0769bdb058bacf0e57f882839e6 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Mon, 29 Apr 2019 23:50:49 +0530 Subject: [PATCH] Freeze mutable object assigned to constant --- lib/liquid/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid/parser.rb b/lib/liquid/parser.rb index 152e04c..2bc4f95 100644 --- a/lib/liquid/parser.rb +++ b/lib/liquid/parser.rb @@ -44,7 +44,7 @@ module Liquid tok[0] == type end - CONSUME_TOKENS = [:string, :number] + CONSUME_TOKENS = [:string, :number].freeze private_constant :CONSUME_TOKENS def expression