Skip to content

fix(ruby-generator): keep Japanese argument names of a function #2611

Done

Description

@smalruby3-editor-bot

autopilot-base: topic/japanese-mode-1731

不具合(B28)

関数の引数を日本語の名前にすると、コードタブを通った往復で _ に変わる。

関数 あいさつ(名前):
    表示する("やあ " + 名前)
あいさつ("たろう")
  • 期待: 同じテキストに戻る
  • 実際: 関数 あいさつ(_): / 表示する("やあ " + _) になる。動きは変わらないが、生徒が書いた名前が消える。
  • 英字の引数(name)は変わらない。
  • ルビータブでも同じ(def あいさつ(名前) → def あいさつ(_))。日本語モードで新しく入ったものではなく、ブロックから Ruby を作るときの引数の名前の扱いと思われる。日本語モードでは日本語の名前を使うことが多いので、こちらで直す。

確かめ方

プレビューの日本語タブに書いて、コードタブ → 日本語タブ。最終レビュー R10 を AI が確かめたときに見つけた。

Activity

  1. moved this to Sprint Backlog in Autopiloton Nov 28, 2026
  2. added
    🤖 autopilot
    on Nov 28, 2026
  3. moved this from Sprint Backlog to In Progress in Autopiloton Nov 28, 2026
  4. smalruby3-editor-bot commented on Nov 28, 2026

    @smalruby3-editor-bot
    Author

    🤖 対応 PR: #2618 (base: topic/japanese-mode-1731)

    この PR は非デフォルト base 宛てのため GitHub の Development 欄に表示されません。このコメントは autopilot が管理します(編集しないでください)。

  5. moved this from In Progress to Review in Autopiloton Nov 28, 2026
  6. added a commit that references this issue on Nov 28, 2026
  7. moved this from Review to Close in Autopiloton Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🤖 autopilot

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions