別のキーワード
種類
- インスタンスメソッド (54)
- 文書 (12)
- 定数 (6)
ライブラリ
- ビルトイン (18)
- delegate (36)
-
shell
/ command-processor (6)
クラス
- Delegator (36)
- Module (12)
- Proc (6)
-
Shell
:: CommandProcessor (6)
キーワード
- NoDelegateMethods (6)
- Ruby用語集 (12)
-
protected
_ methods (12) -
public
_ methods (12) -
ruby2
_ keywords (18)
検索結果
先頭5件
-
Delegator
# methods -> [Symbol] (26107.0) -
そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。 このメソッドは public メソッドおよび protected メソッドの名前を返します。
...そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。
このメソッドは public メソッドおよび protected メソッドの名前を返します。
@see Object#methods... -
Delegator
# protected _ methods(all = true) -> [Symbol] (14107.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...そのオブジェクトが理解できる protected メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#protected_methods... -
Delegator
# public _ methods(all = true) -> [Symbol] (14107.0) -
そのオブジェクトが理解できる public メソッド名の一覧を返します。
...そのオブジェクトが理解できる public メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#public_methods... -
Shell
:: CommandProcessor :: NoDelegateMethods -> [String] (12200.0) -
内部で使用する定数です。
内部で使用する定数です。 -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (44.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...e method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, the final hash argument is marked......splat, the final element is interpreted as
keywords. In other words, keywords will be passed through the method to
other methods.
This should only be used for methods that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will prob... -
Proc
# ruby2 _ keywords -> proc (22.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...d splat, the
final element is interpreted as keywords. In other words, keywords will
be passed through the proc to other methods.
This should only be used for procs that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will proba... -
Ruby用語集 (12.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...ッシュに呼び出しを丸投げすることで実装が簡素化できる。
標準添付ライブラリーには、委譲を支援する delegate や
forwardable がある。
: イテレーター
: iterator
一般には繰り返し(反復)を抽象化する仕組み全般を指す......体はオブジェクトではないが、Method オブジェクトとして
オブジェクト化できる。
: メソッドシグネチャ
: method signature
メソッドの名前や取りうる引数などについての情報。
: メソッド探索
あるオブジェクトのあるメ......、
変数などについての情報)を得たり、プログラムやその動作を変化させたりすること。
Ruby では Object#methods でメソッド名の一覧を得たり、
Module#define_method で動的にメソッドを定義したり、といったことが
できる。...