Rename 'has_key?' and 'has_interrupt?'

This commit is contained in:
Florian Weingarten
2015-06-04 13:14:46 -04:00
parent 82269e2509
commit 5919626da4
10 changed files with 14 additions and 21 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module Liquid
# If object is a hash- or array-like object we look for the
# presence of the key and if its available we return it
if object.respond_to?(:[]) &&
((object.respond_to?(:has_key?) && object.has_key?(key)) ||
((object.respond_to?(:key?) && object.key?(key)) ||
(object.respond_to?(:fetch) && key.is_a?(Integer)))
# if its a proc we will replace the entry with the proc