Skip to content

Revert "Add {Method,UnboundMethod}#{public?,private?,protected?}" - #5974

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:revert-method-visibility-11689
Aug 10, 2022
Merged

Revert "Add {Method,UnboundMethod}#{public?,private?,protected?}"#5974
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:revert-method-visibility-11689

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

This reverts commit 2727815 and
58dc8bf.

Visibility is an attribute of the method entry in a class, not an
attribute of the Method object.

This currently fails the bundled gem tests due to use of these methods in
rbs. That will need to be fixed before this is committed.

Fixes [#18729]
Fixes [#18751]
Fixes [#18435]

@jeremyevans
jeremyevans requested a review from mame June 4, 2022 01:57

@mame mame left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked @matz and he said "let's try"

@jeremyevans

Copy link
Copy Markdown
Contributor Author

@mame That sounds good. @soutaro can you please update rbs for this change? rbs needs to be updated to remove testing of these methods: https://github.com/ruby/ruby/runs/6735184391?check_suite_focus=true#step:16:940

@soutaro

soutaro commented Aug 10, 2022

Copy link
Copy Markdown
Member

@jeremyevans Updated RBS on #6228. Could you rebase this PR to pass the tests? 🙏

This reverts commit 2727815 and
58dc8bf.

Visibility is an attribute of the method entry in a class, not an
attribute of the Method object.

Fixes [#18729]
Fixes [#18751]
Fixes [#18435]
@jeremyevans
jeremyevans force-pushed the revert-method-visibility-11689 branch from d729ff9 to 12a9d69 Compare August 10, 2022 18:40
@jeremyevans

Copy link
Copy Markdown
Contributor Author

@soutaro Thank you very much. I rebased. If this passes CI, I will merge it.

@jeremyevans
jeremyevans merged commit ff42e23 into ruby:master Aug 10, 2022
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.

3 participants