mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-10 06:35:10 -05:00
Define Drop#each so we can use the new frozen/duping behavior
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user