rbs
rbs copied to clipboard
Support "Provide a way to declare visibility of attributes defined by attr* methods in a single expression"
Since provided a way to declare visibility of attributes defined by attr* methods in a single expression after 3.0, I fixed the type signatures of below methods.
-
Module#private
-
Module#private_class_method
-
Module#protected
-
Module#public
-
Module#public_class_method
cf. https://techlife.cookpad.com/entry/2020/12/25/155741#private-attr_reader-foo%E3%81%A8%E6%9B%B8%E3%81%91%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F cf. https://bugs.ruby-lang.org/issues/17314 cf. https://github.com/ruby/ruby/commit/eb8ea336d33af7e1dec4c17964c671c33cf75ce1 cf. https://github.com/ruby/ruby/commit/3a81daaf8dc037057d96b8e8cdc6ab1691e7e9d9
In addition, the type signatures for the following methods have been updated.
-
Module#protected
-
Module#module_function
cf. https://bugs.ruby-lang.org/issues/12495 cf. https://github.com/ruby/ruby/commit/75ecbda438670ec12641d1324d0e81a52ee02e0a