1050件ヒット
[101-200件を表示]
(0.147秒)
ライブラリ
- ビルトイン (669)
- csv (24)
- dbm (12)
- matrix (72)
-
net
/ smtp (84) - openssl (24)
- optparse (12)
- ostruct (24)
-
rexml
/ document (48) -
rubygems
/ platform (12) - sdbm (12)
- set (9)
- shell (6)
-
shell
/ command-processor (24) -
shell
/ filter (6) -
webrick
/ httputils (12)
クラス
- Array (120)
- CSV (12)
-
CSV
:: FieldInfo (12) - DBM (12)
- Enumerator (48)
-
File
:: Stat (12) -
Gem
:: Platform (12) - Hash (36)
- MatchData (110)
- Matrix (12)
-
Matrix
:: EigenvalueDecomposition (24) -
Matrix
:: LUPDecomposition (24) -
Net
:: SMTP (84) - Object (36)
-
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (24)
- OptionParser (12)
-
REXML
:: Element (12) -
REXML
:: Elements (12) -
REXML
:: Parent (24) - Range (14)
- Regexp (24)
- SDBM (12)
- Set (12)
- Shell (6)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (6) - String (122)
- Time (12)
- Vector (12)
-
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Enumerable (132)
キーワード
- [] (48)
- atime (12)
- captures (12)
- cat (6)
- children (12)
- chunk (12)
-
chunk
_ while (12) - codepoints (24)
-
col
_ sep (12) - deconstruct (2)
- each (48)
-
each
_ codepoint (24) -
each
_ grapheme _ cluster (16) -
each
_ line (24) -
each
_ pair (24) - echo (6)
- entries (7)
-
get
_ elements (12) - glob (18)
-
grapheme
_ clusters (16) - keys (12)
- length (12)
- line (12)
- lines (18)
- match (24)
-
max
_ by (48) - permutation (24)
- rcptto (12)
-
rcptto
_ list (12) - ready (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - sample (48)
-
send
_ mail (12) - sendmail (12)
- size (12)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) - tap (12)
- tee (6)
-
to
_ ary (48) - values (12)
-
values
_ at (12)
検索結果
先頭5件
-
Time
# to _ a -> Array (18120.0) -
時刻を10要素の配列で返します。
...あるかどうか (true/false)
* zone: タイムゾーン (文字列)
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5)
p t # => 2000-01-02 03:04:05 +0900
p t.to_a # => [5, 4, 3, 2, 1, 2000, 0, 2, false, "JST"]
//}
要素の順序は C 言語の tm 構造体に合わせています。た... -
DBM
# to _ a -> [Array] (18114.0) -
キーと値のペアを配列に変換して返します。
...キーと値のペアを配列に変換して返します。
require 'dbm'
db1 = DBM.open('aaa.db', 0666, DBM::NEWDB)
db1[:a] = 'aaa'
db1[:b] = 'bbbbbb'
p db1.to_a #=> [["b", "bbbbbb"], ["a", "aaa"]]... -
Hash
# to _ a -> [Array] (18114.0) -
キーと値からなる 2 要素の配列を並べた配列を生成して返します。
...キーと値からなる 2 要素の配列を並べた配列を生成して返します。
//emlist[例][ruby]{
h1 = { "a" => 100, 2 => ["some"], :c => "c" }
p h1.to_a #=> c, "c"
//}
@see Hash#keys,Hash#values... -
MatchData
# to _ a -> [String] (18114.0) -
$&, $1, $2,... を格納した配列を返します。
...$&, $1, $2,... を格納した配列を返します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
//}
@see MatchData#captures... -
Matrix
# to _ a -> Array (18114.0) -
自分自身をArrayに変換したものを返します。
...します。
行ベクトルを配列(Array)としたものの配列(つまり配列の配列)として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.to_a # => [[1, 2, 3], [10, 15, 20], [-1, -2, 1.5]]
//}... -
SDBM
# to _ a -> [[String]] (18114.0) -
self の各要素を格納した配列を返します。
...。
返される配列の1つの要素は [key, value] です。
つまり配列の配列を返します。
require 'sdbm'
db1 = SDBM.open('aaa.gdbm', 0666)
db1.clear
db1['a'] = 'aaa'
db1['b'] = 'bbb'
db1['c'] = 'ccc'
p db1.to_a #=> [["a", "aaa"], ["b", "bbb"], ["c", "ccc"]]... -
Set
# to _ a -> Array (18114.0) -
self を配列に変換します。要素の順序は不定です。
...self を配列に変換します。要素の順序は不定です。
//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//}......self を配列に変換します。要素の順序は不定です。
//emlist[][ruby]{
set = Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//}... -
Vector
# to _ a -> Array (18114.0) -
ベクトル(Vector)から配列 (Array) に変換します。
...ベクトル(Vector)から配列 (Array) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_a
# => [2, 3, 5, 7, 9]
//}... -
REXML
:: Parent # to _ a -> [REXML :: Child] (18102.0) -
子ノード列の配列を返します。
子ノード列の配列を返します。