lib/arstotzka/key_reader.rb in arstotzka-1.4.2 vs lib/arstotzka/key_reader.rb in arstotzka-1.4.3
- old
+ new
@@ -60,9 +60,10 @@
# @return [Boolean]
#
# @see #check_key!
def key?
return unless hash
+
hash.key?(key) || hash.key?(key.to_sym)
end
# @private
#