ヘルプと記号ページのモジュール関数表記を 4.0 以降は ?. にする#3263
Merged
Merged
Conversation
rurema/bitclust#250(PR rurema#277)で Ruby 4.0 以降のドキュメントは生成される 見出し等のモジュール関数表記が ?. になったため、説明している側のページも 版で分岐する: - help.md の FAQ「Kernel.#require の .# って何?」を 4.0 以降は ?. 表記に。 旧バージョンのドキュメントでは .# と表示されている旨も追記 - symref.md 冒頭の Kernel.#format への言及も同様に分岐 3.4/4.0 両版の Preprocessor 展開+MDCompiler 描画で、表記の切り替えと リスト構造の不変(dt/li 数一致)を確認済み。 refs rurema/bitclust#250 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
rurema/bitclust#250(PR rurema/bitclust#277)で Ruby 4.0 以降のドキュメントは生成される見出し等のモジュール関数表記が
?.になったため、表記を説明している側のページを版で分岐します。help.mdの FAQ「Kernel.#require の .# って何?」→ 4.0 以降は?.表記の設問・説明に切り替え。「Ruby 4.0 より前のバージョンのドキュメントでは「.#」と表示されています」という相互案内も追記symref.md冒頭のKernel.#formatへの言及も同様に分岐検証
.#/ 4.0=?.)とリスト構造の不変(dt/li 数が両版で一致=#@since/#@elseがリストを分断しないこと)を確認済みcheck_blank_lines/check_single_space_indentとも passなお、本文中のインライン参照(
[m:Kernel?.open]等)は Markdown 移行時からソース記載どおり?.で表示されており(リンクテキスト=記載文字列)、今回の対象は説明ページの散文のみです。manual/ 配下で.#表記を説明・言及している散文はこの2箇所で全てであることを grep で確認しています。refs rurema/bitclust#250
🤖 Generated with Claude Code