0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Ruby】TypeProf でネストしたクラス・モジュールの RBS 作ったら変

0
Posted at

TypeProf でネストしたクラスやモジュールの RBS ファイルを作ったら変だった。

再現手順

sample.rb
module Foo
  module Bar
  end
end
typeprof sample.rb

すると以下が表示される。

# TypeProf 0.31.1

# sample.rb
module Foo
  module Foo::Bar
  end
end

いや,なぜそうなる?
モジュールのところは

module Foo
  module Bar
  end
end

module Foo::Bar
end

かどっちかでしょ。

各種バージョン

  • ruby 3.4.8 (2025-12-17 revision 995b59f666) +PRISM [arm64-darwin25]
  • ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [arm64-darwin25]
  • typeprof 0.31.1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?