Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Alias for attribute causes aliasing method to appear in Attributes section

オープン
#1,286 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@extern-c がすでに取り組んでいます。

2025年2月24日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby
領域
documentation

調査の方向性

lib/foo.rb に記載されている RDoc の動作から始め、attr :bar と alias baz bar を含む例に対して rdoc を実行します。生成された Foo のドキュメントを調べます。完了とは、attributes セクションに baz が表示されなくなり、bar は引き続きドキュメント化されている状態です。

索引モデルが issue の本文から書いたものです。

説明

bug

When defining an alias for an attribute in a class, the aliasing method is incorrectly displayed in the attributes section of the generated documentation.

For example, consider the following code in lib/foo.rb:

class Foo
  attr :bar
  alias baz bar
end

When running rdoc, the documentation for the Foo class shows:

Image

This behavior is misleading, as baz is not a separate attribute but an alias method for bar method (and attribute). It would be beneficial to adjust the documentation generation to prevent alias methods from appearing in the attributes section.

主要言語
Ruby
スター
927
フォーク
467
平均マージ
23時間 47分
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ruby/rdoc のほかの issue

ruby/rdoc の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。