From 2183d9d6b4658adf878fc4a2cf308d4131e4cffa Mon Sep 17 00:00:00 2001 From: Anatoliy Yastreb Date: Thu, 25 Aug 2016 12:13:34 +0200 Subject: [PATCH] Implement respond_to_missing? in Document --- lib/jekyll/document.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb index e27788636..f35cdb0e0 100644 --- a/lib/jekyll/document.rb +++ b/lib/jekyll/document.rb @@ -371,6 +371,10 @@ module Jekyll end end + def respond_to_missing?(method, *) + data.key?(method.to_s) || super + end + private def merge_categories!(other) if other.key?("categories") && !other["categories"].nil?