989件ヒット
[901-989件を表示]
(0.071秒)
ライブラリ
- ビルトイン (259)
- matrix (24)
- ostruct (10)
-
rake
/ packagetask (60) -
rubygems
/ indexer (12) -
rubygems
/ package / tar _ input (12) - zlib (612)
クラス
- Array (24)
- Data (12)
-
Enumerator
:: Lazy (48) -
Gem
:: Indexer (12) -
Gem
:: Package :: TarInput (12) - OpenStruct (10)
-
Rake
:: PackageTask (60) - Struct (139)
- Vector (24)
-
Zlib
:: GzipFile (156) -
Zlib
:: GzipFile :: Error (24) -
Zlib
:: GzipReader (264) -
Zlib
:: GzipWriter (168)
モジュール
- Enumerable (36)
キーワード
- << (12)
- []= (12)
- close (24)
- closed? (12)
- comment (12)
- comment= (12)
- crc (12)
- deconstruct (6)
-
deconstruct
_ keys (6) - dig (10)
- each (48)
- each2 (24)
-
each
_ byte (24) -
each
_ line (24) - eof (12)
- eof? (12)
- finish (24)
- flush (12)
- getc (12)
- gets (12)
- gzip (12)
- input (12)
- inspect (27)
- lazy (12)
- length (12)
- level (12)
- lineno (12)
- lineno= (12)
- mtime (12)
- mtime= (12)
-
need
_ zip (12) -
need
_ zip= (12) -
orig
_ name (12) -
orig
_ name= (12) -
os
_ code (12) - path (12)
- pos (24)
- print (12)
- printf (12)
- putc (12)
- puts (12)
- read (12)
- readchar (12)
- readline (12)
- readlines (12)
- readpartial (12)
- rewind (12)
- size (12)
- sync (12)
- sync= (12)
-
take
_ while (24) - tell (24)
-
to
_ a (12) -
to
_ h (25) -
to
_ io (12) -
to
_ s (15) - ungetc (12)
- unused (12)
- values (12)
- write (12)
-
zip
_ command (12) -
zip
_ command= (12) -
zip
_ file (12) -
zipped
_ stream (12)
検索結果
先頭5件
-
Struct
# each -> Enumerator (7.0) -
構造体の各メンバに対して繰り返します。
...uct.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 Smith
# 123 Maple, Anytown NC
# 12345
//}... -
Struct
# each {|value| . . . } -> self (7.0) -
構造体の各メンバに対して繰り返します。
...uct.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 Smith
# 123 Maple, Anytown NC
# 12345
//}... -
Struct
# length -> Integer (7.0) -
構造体のメンバの数を返します。
...に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.length #=> 3
//}... -
Struct
# size -> Integer (7.0) -
構造体のメンバの数を返します。
...に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.length #=> 3
//}... -
Struct
# to _ a -> [object] (7.0) -
構造体のメンバの値を配列にいれて返します。
...構造体のメンバの値を配列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下... -
Struct
# values -> [object] (7.0) -
構造体のメンバの値を配列にいれて返します。
...構造体のメンバの値を配列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下... -
Vector
# each2(v) -> Enumerator (7.0) -
ベクトルの各要素と、それに対応するインデックスを持つ引数 v の要素との組に対して (2引数の) ブロックを繰返し評価します。
...クを省略した場合は Enumerator を返します。
@param v 各要素と組を取るためのオブジェクト
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたときに発生します。
@see Array#zip... -
Vector
# each2(v) {|x , y| . . . } -> self (7.0) -
ベクトルの各要素と、それに対応するインデックスを持つ引数 v の要素との組に対して (2引数の) ブロックを繰返し評価します。
...クを省略した場合は Enumerator を返します。
@param v 各要素と組を取るためのオブジェクト
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたときに発生します。
@see Array#zip...