1623件ヒット
[101-200件を表示]
(0.130秒)
ライブラリ
- ビルトイン (984)
- benchmark (12)
-
cgi
/ core (24) - csv (108)
- dbm (12)
- gdbm (12)
- matrix (96)
-
net
/ smtp (84) - openssl (24)
- optparse (12)
- ostruct (24)
- rake (36)
-
rexml
/ document (60) -
rubygems
/ platform (12) - sdbm (12)
- set (9)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30) -
webrick
/ httputils (12) -
yaml
/ dbm (12)
クラス
-
ARGF
. class (96) - Array (168)
-
Benchmark
:: Tms (12) - CSV (24)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (12) -
CSV
:: Table (60) - DBM (12)
- Enumerator (67)
-
Enumerator
:: Lazy (12) -
File
:: Stat (12) - GDBM (12)
-
Gem
:: Platform (12) - Hash (36)
- MatchData (111)
- Matrix (36)
-
Matrix
:: EigenvalueDecomposition (24) -
Matrix
:: LUPDecomposition (24) -
Net
:: SMTP (84) - NilClass (12)
- Object (36)
-
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (24)
- OptionParser (12)
-
REXML
:: Attributes (12) -
REXML
:: Element (12) -
REXML
:: Elements (12) -
REXML
:: Parent (24) -
Rake
:: FileList (36) - Range (14)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Set (12)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - String (176)
- Struct (30)
- Time (12)
- Vector (12)
-
WEBrick
:: HTTPUtils :: FormData (12) -
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (163)
キーワード
- + (7)
- << (24)
- == (12)
- [] (48)
- atime (12)
- bytes (24)
- captures (12)
- cat (18)
- chain (7)
- chars (24)
- children (12)
- chunk (12)
-
chunk
_ while (12) - codepoints (24)
-
col
_ sep (12) - combination (24)
- deconstruct (9)
- delete (12)
-
delete
_ if (24) - each (72)
-
each
_ byte (24) -
each
_ codepoint (24) -
each
_ grapheme _ cluster (16) -
each
_ line (24) -
each
_ pair (24) - echo (18)
- entries (19)
- force (12)
-
get
_ elements (12) - glob (18)
-
grapheme
_ clusters (16) -
header
_ converters (12) - keys (12)
- length (12)
- line (12)
- lines (24)
- match (24)
-
max
_ by (48) - permutation (24)
- rcptto (12)
-
rcptto
_ list (12) - readlines (36)
- ready (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - sample (48)
-
send
_ mail (12) - sendmail (12)
- size (24)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) - tap (12)
- tee (18)
-
to
_ ary (84) - values (24)
-
values
_ at (12)
検索結果
先頭5件
-
NilClass
# to _ a -> Array (18108.0) -
空配列 [] を返します。
...空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//}... -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (18108.0) -
内容を配列にして返します。
...ssl'
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", 12], ["O", "Example Company", 12], ["OU", "Lab3", 12], ["CN", "foobar", 12], ["e... -
OptionParser
# to _ a -> [String] (18108.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", " -h, --help\n"]
//}... -
REXML
:: Attributes # to _ a -> [Attribute] (18108.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']
//}... -
Rake
:: FileList # to _ a -> Array (18108.0) -
内部的な配列を返します。
...内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//}... -
RubyVM
:: InstructionSequence # to _ a -> Array (18108.0) -
self の情報を 14 要素の配列にして返します。
...令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},... -
SDBM
# to _ a -> [[String]] (18108.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 (18108.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"]
//}... -
Shell
:: Filter # to _ a -> [String] (18108.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Struct
# to _ a -> [object] (18108.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 の下位クラスのインスタンスに対し...
