53件ヒット
[1-53件を表示]
(0.269秒)
種類
- インスタンスメソッド (48)
- 文書 (5)
ライブラリ
- ビルトイン (48)
クラス
- Module (48)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) -
public
_ class _ method (24)
検索結果
先頭5件
-
Module
# private _ class _ method(*name) -> self (18120.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...定したクラスメソッド (クラスの特異メソッド) の
可視性を private に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module F... -
Module
# private _ class _ method(names) -> self (18120.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...定したクラスメソッド (クラスの特異メソッド) の
可視性を private に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module F... -
Module
# public _ class _ method(*name) -> self (18.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...ublic に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMeth... -
Module
# public _ class _ method(names) -> self (18.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...ublic に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMeth... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...rue` is used. 17104
* Magic comment `shareable_constant_value` added to freeze constants.
See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details.
17273
* A {static analysis}[rdoc-label:label-Static+analysis] foundation is
introduced.
* {RBS}[rdo......classes included or prepended the receiver. 9573
* Module#public, Module#protected, Module#private, Module#public_class_method, Module#private_class_method, toplevel "private" and "public" methods now accept single array argument with a list of method names. 17314
* Module#attr_accessor, Mo......on uses only methods ending with `!`.
* Ractor compatible.
* Improved support for YAML. 8382
* Use officially discouraged. Read OpenStruct@Caveats section.
* Pathname
* Ractor compatible.
* Psych
* Update to Psych 3.3.0
* This version is Ractor compatible.
* Reline...