Skip to content

Commit

Permalink
Make it clear Root#initializer doesn't yield block
Browse files Browse the repository at this point in the history
It will make ruby point to the correct source of the warning.

ref #109
  • Loading branch information
flash-gordon committed Dec 30, 2024
1 parent d016b77 commit e8e0ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dry/initializer/mixin/root.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Mixin
module Root
private

def initialize(...)
__dry_initializer_initialize__(...)
def initialize(*, **)
__dry_initializer_initialize__(*, **)
end
end
end
Expand Down

0 comments on commit e8e0ad6

Please sign in to comment.