Define Drop#each so we can use the new frozen/duping behavior

This commit is contained in:
Parker Moore 2016-05-18 12:53:08 -07:00 committed by Pat Hawks
parent d5c3785d29
commit 48274244e3
1 changed files with 6 additions and 0 deletions

View File

@ -147,6 +147,12 @@ module Jekyll
keys.each(&block)
end
def each(&block)
each_key.each do |key|
yield key, self[key]
end
end
def merge(other, &block)
self.dup.tap do |me|
if block.nil?