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
@@ -25,7 +25,7 @@ module Liquid
end
def [](tag_name)
return nil unless @tags.has_key?(tag_name)
return nil unless @tags.key?(tag_name)
return @cache[tag_name] if Liquid.cache_classes
lookup_class(@tags[tag_name]).tap { |o| @cache[tag_name] = o }