793件ヒット
[1-100件を表示]
(0.138秒)
ライブラリ
- ビルトイン (559)
- benchmark (12)
- csv (60)
- dbm (12)
- gdbm (12)
-
net
/ smtp (12) - openssl (12)
- rake (36)
-
rexml
/ document (24) - sdbm (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httputils (12) -
yaml
/ dbm (12)
クラス
-
ARGF
. class (24) - Array (84)
-
Benchmark
:: Tms (12) -
CSV
:: Table (60) - DBM (12)
- Enumerator (48)
-
Enumerator
:: Lazy (12) - GDBM (12)
- Hash (24)
- MatchData (12)
-
Net
:: SMTP (12) - Object (36)
-
OpenSSL
:: X509 :: Extension (12) -
REXML
:: Attributes (12) -
REXML
:: Elements (12) -
Rake
:: FileList (36) - Range (14)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (76)
- Struct (30)
-
WEBrick
:: HTTPUtils :: FormData (12) -
YAML
:: DBM (12)
モジュール
- Enumerable (163)
キーワード
- << (12)
- == (12)
- bytes (24)
- chain (7)
- chars (12)
- chunk (12)
-
chunk
_ while (12) - codepoints (12)
- combination (24)
- deconstruct (6)
- delete (12)
-
delete
_ if (24) - each (48)
-
each
_ byte (24) -
each
_ codepoint (12) -
each
_ grapheme _ cluster (8) - entries (19)
- force (12)
- glob (18)
-
grapheme
_ clusters (8) - keys (12)
- match (24)
-
max
_ by (48) - permutation (12)
-
rcptto
_ list (12) -
repeated
_ combination (24) - sample (24)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) - tap (12)
-
to
_ ary (36) - values (24)
-
values
_ at (12)
検索結果
先頭5件
-
REXML
:: Attributes # to _ a -> [Attribute] (21208.0) -
属性の配列を返します。
...属性の配列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a x='1' y='2' z='3' />")
doc.root.attributes.to_a # => [x='1', y='2', z='3']
//}... -
YAML
:: DBM # to _ a -> [[String , object]] (21202.0) -
キーと値のペアを配列に変換して返します。
キーと値のペアを配列に変換して返します。 -
DBM
# to _ a -> [Array] (21120.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"]]... -
Object
# to _ a -> Array (21120.0) -
オブジェクトを配列に変換した結果を返します。 デフォルトでは定義されていません。
...のメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
p( {'a'=>1}.to_a ) # [["a", 1]]
p ['array'].to_a # ["array"]
p nil.to_a # []
//}
@see Object#to_ary,Kernel.#Array... -
SDBM
# to _ a -> [[String]] (21120.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"]]... -
CSV
:: Table # to _ a -> [Array] (21108.0) -
配列の配列を返します。
...はデータを表わします。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table.to_a # => [["header1", "header2"], ["row1_1", "row1_2"... -
RubyVM
:: InstructionSequence # to _ a -> Array (21108.0) -
self の情報を 14 要素の配列にして返します。
...:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。トップレベルでは "<ma......合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensur......数名からなる Symbol の配列。
: args
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]... -
Benchmark
:: Tms # to _ a -> Array (21102.0) -
6 要素の配列を返します。
6 要素の配列を返します。
要素は以下の順番で配列に格納されています。
* ラベル
* user CPU time
* system CPU time,
* 子プロセスの user CPU time
* 子プロセスの system CPU time,
* 実経過時間 -
GDBM
# to _ a -> [[String]] (21102.0) -
self の各要素を格納した配列を返します。
self の各要素を格納した配列を返します。
返される配列の1つの要素は [key, value] です。
つまり配列の配列を返します。