Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protectedインスタンスメソッドが、Publicインスタンスメソッドに混ざっている #162

Closed
universato opened this issue Apr 26, 2021 · 1 comment

Comments

@universato
Copy link
Contributor

doctreeの方で== Protected Instance Methodsを検索すると、10ファイルほどヒットします。
ここに書かれているProtectedインスタンスメソッドが、一般的なPublicインスタンスメソッドと混ざっています。

あまりprotectedは使われてなく数は少ないかもしれませんが、
(ピンポイントで見て)内部向けのメソッドが外部向けのものと混ざるべきではないのでIssueとしてあげておきます。

混ざっている例

1例として、Benchmark::Tmsmemberwiseを貼っておきます。

doctree のテキスト(エディタの画面)

doctree/benchmark.rd at 7dcae13e · rurema/doctree
Image from Gyazo

るりま(HP)

class Benchmark::Tms (Ruby 3.0.0 リファレンスマニュアル)
Image from Gyazo

@universato
Copy link
Contributor Author

本番環境で変更が反映されてたのでcloseします

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

No branches or pull requests

1 participant