Skip to content

Conversation

@k-tsj
Copy link
Member

@k-tsj k-tsj commented Nov 5, 2025

CRuby 2.7 has a bug that makes the following code fail even though it shouldn't.

module M
  refine Class do
    def new
    end
  end
end

class C
end

C.private_class_method(:new) #=> undefined method `new' for class `#<Class:C>'

We fix the issue where loading lib/power_assert/enable_tracepoint_events.rb during power_assert loading caused it to happen in user code.

ref:
#61

@k-tsj k-tsj merged commit 6ec30f9 into master Nov 5, 2025
62 checks passed
@k-tsj k-tsj deleted the fix-27-error branch November 5, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants