Remove override to Jekyll::Document#respond_to? (#7695)

Merge pull request 7695
This commit is contained in:
Ashwin Maroli 2019-06-05 21:40:37 +05:30 committed by jekyllbot
parent 04ba0c3b10
commit e05745929f
1 changed files with 0 additions and 6 deletions

View File

@ -392,12 +392,6 @@ module Jekyll
@related_posts ||= Jekyll::RelatedPosts.new(self).build
end
# Override of normal respond_to? to match method_missing's logic for
# looking in @data.
def respond_to?(method, include_private = false)
data.key?(method.to_s) || super
end
# Override of method_missing to check in @data for the key.
def method_missing(method, *args, &blck)
if data.key?(method.to_s)