Skip to content

Commit

Permalink
Fix Ruby 3 support via explicit call to yield instead of implicit blo…
Browse files Browse the repository at this point in the history
…ck to proc creation
  • Loading branch information
cjcolvar committed Dec 20, 2022
1 parent 537fb37 commit 3097c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/edtf/season.rb
Expand Up @@ -109,7 +109,7 @@ def cover?(other)

def each
if block_given?
to_range.each(&Proc.new)
to_range.each { |r| yield(r) }
self
else
to_enum
Expand Down

0 comments on commit 3097c47

Please sign in to comment.