Skip to content

Commit

Permalink
Implement respond_to_missing? in Document
Browse files Browse the repository at this point in the history
  • Loading branch information
ayastreb committed Aug 25, 2016
1 parent 158e026 commit 2183d9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jekyll/document.rb
Expand Up @@ -371,6 +371,10 @@ def method_missing(method, *args, &blck)
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?
Expand Down

0 comments on commit 2183d9d

Please sign in to comment.