Try item_property

This commit is contained in:
Anatol Broder 2014-05-08 01:08:14 +02:00
parent d8e68bc0e1
commit 9ba89b9ab1
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ module Jekyll
end
def hash_property(hash, property)
return item_property(hash, property)
if hash.respond_to?('[]'.freeze)
hash[property]
elsif hash.respond_to?(property)