629件ヒット
[1-100件を表示]
(0.036秒)
ライブラリ
- ビルトイン (98)
- csv (132)
- dbm (12)
- matrix (48)
-
net
/ smtp (60) - openssl (12)
- optparse (12)
- ostruct (24)
- readline (36)
-
rexml
/ document (24) - sdbm (12)
- set (9)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30) -
webrick
/ httputils (12)
クラス
- Array (48)
- CSV (24)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (24) -
CSV
:: Table (72) - DBM (12)
- Matrix (36)
-
Net
:: SMTP (60) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (24)
- OptionParser (12)
-
REXML
:: Attributes (12) -
REXML
:: Elements (12) - Range (14)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Set (9)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - Vector (12)
-
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Enumerable (24)
- Readline (12)
オブジェクト
-
Readline
:: HISTORY (12)
キーワード
- << (24)
- Readline (12)
- cat (18)
-
col
_ sep (12) - delete (12)
-
delete
_ at (12) -
delete
_ if (24) - each (24)
-
each
_ pair (24) - echo (18)
- entries (19)
- glob (18)
-
header
_ converters (12) -
irb
/ completion (12) - line (12)
- new (24)
- rake (12)
-
rdoc
/ markup / to _ ansi (12) - readline (12)
- ready (12)
-
ruby 1
. 6 feature (12) - rubygems (12)
- sample (48)
-
send
_ mail (12) - sendmail (12)
- tee (18)
-
to
_ ary (12)
検索結果
先頭5件
-
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (18125.0) -
すべての子要素の配列を返します。
...視されます。
@param xpath XPath文字列
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_a # => [<b/>, <c/>]
doc.root.elements.to_a("child::node()") # => [<b/>, <c/>]
REXML::XPath.match(doc.root, "... -
CSV
:: Table # to _ a -> [Array] (18113.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"],... -
DBM
# to _ a -> [Array] (18113.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"]]... -
Matrix
# to _ a -> Array (18113.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]]
//}... -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (18113.0) -
内容を配列にして返します。
...れているASN1の型)] という3要素の配列です。
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')
n.to_a
# => [["C", "JP", 19], ["ST", "Kanagawa", 12], ["L", "Yokohama",... -
OptionParser
# to _ a -> [String] (18113.0) -
サマリの各行を要素とした配列を返します。
...各行を要素とした配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n... -
REXML
:: Attributes # to _ a -> [Attribute] (18113.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']
//}... -
RubyVM
:: InstructionSequence # to _ a -> Array (18113.0) -
self の情報を 14 要素の配列にして返します。
...配列。
: args
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]
より詳細な情報につい......命令シーケンスを構成する命令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:a... -
SDBM
# to _ a -> [[String]] (18113.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"]]...