るりまサーチ

最速Rubyリファレンスマニュアル検索!
70件ヒット [1-70件を表示] (0.023秒)
トップページ > クエリ:Hash[x] > クエリ:delegate[x]

別のキーワード

  1. _builtin hash
  2. hash []
  3. dbm to_hash
  4. matrix hash
  5. _builtin to_hash

ライブラリ

クラス

モジュール

検索結果

Forwardable#delegate(hash) -> () (18228.0)

メソッドの委譲先を設定します。

...

@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash
を指定します。キーは Symbol、
String かその配列で指定します。


例:

require 'forwardable'
class Zap
extend Forwardable
delegate
:length =>...

SingleForwardable#delegate(hash) -> () (18222.0)

メソッドの委譲先を設定します。

...メソッドの委譲先を設定します。

@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash
を指定します。キーは Symbol、
String かその配列で指定します。

@see Forwardable#delegate...

Forwardable#instance_delegate(hash) -> () (6228.0)

メソッドの委譲先を設定します。

...

@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash
を指定します。キーは Symbol、
String かその配列で指定します。


例:

require 'forwardable'
class Zap
extend Forwardable
delegate
:length =>...

SingleForwardable#single_delegate(hash) -> () (6222.0)

メソッドの委譲先を設定します。

...メソッドの委譲先を設定します。

@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash
を指定します。キーは Symbol、
String かその配列で指定します。

@see Forwardable#delegate...

Ruby用語集 (78.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...ンの
間でオブジェクトにアクセスできる。

===[a:E] E

: ENV
環境変数にアクセスするためのオブジェクト。
Hash
に似たインターフェースを持つ。キーも値も文字列である。
ENV で環境変数を変更すると Ruby の子プロセス...
...ッシュに呼び出しを丸投げすることで実装が簡素化できる。

標準添付ライブラリーには、委譲を支援する delegate
forwardable がある。

: イテレーター
: iterator
一般には繰り返し(反復)を抽象化する仕組み全般を指す...
...「可変長引数」という用語の
ほうが普及している。

英語の variadic は形容詞である。

: 空
: empty
Array や Hash、Struct のような要素を持つクラスでは、要素が無いことを
「空(から)」と呼ぶ。

また、String クラスで...

絞り込み条件を変える

Module#ruby2_keywords(method_name, ...) -> nil (22.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.

...lat (`*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 cal...
...s 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 probably be removed at some po...

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.

...t 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 cal...
...t 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 probably be removed at some po...

NEWS for Ruby 2.7.0 (18.0)

NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...* Date.jisx0301, Date#jisx0301, Date.parseが新しい日本の年号を
サポートしました。 15742

* Delegator
* Object#DelegateClassがブロックを受け付けるようになり、
Class.newやStruct.newのように返り値のクラスのコンテキストで...
...たにdefault gemsになりました。
* 以下のdefault gemがrubygems.orgで公開されました。
* benchmark
* cgi
* delegate
* getoptlong
* net-pop
* net-smtp
* open3
* pstore
* readline
* readline-ext
* singleton
*...
...のプラットフォームでrealpath(3)を使います。
これは大幅にパフォーマンスを改善します。 15797

* Hash
* 小さいHashオブジェクトのデータ構造が変わりました。 15602

* Monitor
* MonitorクラスがC拡張になりました。 1625...