Skip to content

Commit

Permalink
Ruby 3.4 changed the format, hm
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Dec 20, 2024
1 parent a407df9 commit b922f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oaken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_onto(seeds) = @entries.each do |path|
def self.definition_location
# Trickery abounds! Due to Ruby's `caller_locations` + our `load_onto`'s `class_eval` above
# we can use this format to detect the location in the seed file where the call came from.
caller_locations(2, 8).find { _1.label.match? /block .*?in load_onto/ }
caller_locations(2, 8).find { _1.label.match? /block .*?load_onto/ }
end
end

Expand Down

0 comments on commit b922f3d

Please sign in to comment.