1720件ヒット
[1701-1720件を表示]
(0.056秒)
別のキーワード
ライブラリ
クラス
- Array (58)
- CGI (12)
-
CSV
:: Row (24) -
CSV
:: Table (48) - Data (6)
- Enumerator (24)
-
Fiddle
:: Pointer (12) - File (12)
- Hash (572)
-
JSON
:: Parser (12) -
JSON
:: State (48) - MatchData (16)
- Matrix (108)
- Module (12)
-
Net
:: HTTPResponse (12) - Object (12)
-
ObjectSpace
:: WeakMap (12) -
OpenSSL
:: ASN1 :: ASN1Data (24) - OpenStruct (14)
- OptionParser (144)
- Prime (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
REXML
:: Text (36) -
Rake
:: TaskArguments (60) -
Resolv
:: DNS (12) - String (24)
- Struct (98)
- Thread (24)
- TracePoint (12)
- UncaughtThrowError (11)
- Vector (14)
-
WIN32OLE
_ VARIANT (12)
モジュール
- Enumerable (19)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (36)
キーワード
- [] (36)
- []= (98)
-
add
_ attribute (24) -
add
_ attributes (12) -
attributes
_ of (12) - bytebegin (2)
- byteend (2)
- clear (12)
- coerce (12)
- compact (9)
- compact! (9)
- configure (12)
-
const
_ set (12) - default= (12)
-
delete
_ if (36) - each (84)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ header (12) -
each
_ key (24) -
each
_ pair (48) -
each
_ value (36) - eigen (12)
- eigensystem (12)
- fetch (36)
-
fetch
_ values (22) - filter (14)
- filter! (14)
-
find
_ index (36) - flock (12)
-
get
_ text (12) -
has
_ key? (12) -
has
_ value? (12) - header (12)
- include? (12)
- indent (12)
- indent= (12)
- index (36)
-
instance
_ variable _ set (12) -
keep
_ if (24) - key? (12)
- member? (12)
- merge (12)
- names (12)
-
new
_ scope (12) -
next
_ values (12) - on (144)
- pack (21)
- parse (12)
-
parse
_ csv (12) -
peek
_ values (12) -
prime
_ division (12) - rassoc (12)
- reject (24)
- reject! (24)
- response (12)
-
return
_ value (12) - select (24)
- select! (24)
- shift (12)
- store (12)
- text (12)
-
thread
_ variable _ set (12) - timeouts= (12)
-
to
_ csv (4) -
to
_ h (86) -
to
_ hash (12) -
to
_ s (24) -
to
_ string (12) -
to
_ value (12) -
transform
_ values (18) -
transform
_ values! (18) - unpack (12)
- value= (24)
- value? (12)
- values (24)
-
values
_ at (60) -
with
_ defaults (12)
検索結果
-
Struct
# each -> Enumerator (14.0) -
構造体の各メンバに対して繰り返します。
...呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.each {|x| puts(x) }
# => Joe Sm... -
Struct
# each _ pair -> Enumerator (14.0) -
構造体のメンバ名(Symbol)と値の組を引数にブロックを繰り返し実行します。
...構造体のメンバ名(Symbol)と値の組を引数にブロックを繰り返し実行します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
Foo.new('FOO', 'BAR').each_pair {|m, v| p [m,v]}
# => [:foo, "FOO"]
# [:bar, "BAR"]
//}
[注意] 本メソッドの記述は Struct の下位...