Implement respond_to_missing? in Document

This commit is contained in:
Anatoliy Yastreb 2016-08-25 12:13:34 +02:00
parent 158e02623a
commit 2183d9d6b4
1 changed files with 4 additions and 0 deletions

View File

@ -371,6 +371,10 @@ module Jekyll
end end
end end
def respond_to_missing?(method, *)
data.key?(method.to_s) || super
end
private private
def merge_categories!(other) def merge_categories!(other)
if other.key?("categories") && !other["categories"].nil? if other.key?("categories") && !other["categories"].nil?