1件ヒット
[1-1件を表示]
(0.067秒)
クラス
- OpenStruct (1)
検索結果
-
OpenStruct
# each _ pair -> Enumerator (45907.0) -
self の各要素の名前と要素を引数としてブロックを評価します。
...ックを評価します。
ブロックを指定した場合は self を返します。そうでない場合は
Enumerator を返します。
例:
require 'ostruct'
data = OpenStruct.new("country" => "Australia", :population => 20_000_000)
data.each_pair.to_a # => population, 20000000...