1749件ヒット
[101-200件を表示]
(0.099秒)
ライブラリ
- ビルトイン (1004)
- benchmark (11)
-
cgi
/ core (22) - csv (121)
- dbm (11)
- gdbm (11)
- matrix (88)
-
net
/ smtp (77) - openssl (22)
- optparse (11)
- ostruct (22)
- rake (33)
- readline (22)
-
rexml
/ document (55) -
rubygems
/ platform (11) - sdbm (11)
- set (11)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30) - socket (22)
-
webrick
/ httputils (11) -
yaml
/ dbm (11)
クラス
-
ARGF
. class (88) - Array (154)
-
Benchmark
:: Tms (11) - CSV (22)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (22) -
CSV
:: Table (66) - DBM (11)
- Enumerator (61)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (11) -
File
:: Stat (11) - GDBM (11)
-
Gem
:: Platform (11) - Hash (33)
- MatchData (99)
- Matrix (33)
-
Matrix
:: EigenvalueDecomposition (22) -
Matrix
:: LUPDecomposition (22) -
Net
:: SMTP (77) - NilClass (11)
- Object (33)
-
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: Name (11) - OpenStruct (22)
- OptionParser (11)
-
REXML
:: Attributes (11) -
REXML
:: Element (11) -
REXML
:: Elements (11) -
REXML
:: Parent (22) -
Rake
:: FileList (33) - Range (12)
- Regexp (22)
-
RubyVM
:: InstructionSequence (11) - SDBM (11)
- Set (11)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - Socket (11)
- String (160)
- Struct (22)
- Time (99)
- Vector (11)
-
WEBrick
:: HTTPUtils :: FormData (11) -
YAML
:: DBM (11)
モジュール
-
CGI
:: QueryExtension :: Value (22) - Enumerable (149)
- Kernel (11)
- Readline (11)
-
Socket
:: Constants (11)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (11)
キーワード
- + (6)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (22)
- == (11)
- Array (11)
-
IPPROTO
_ AH (22) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - [] (44)
- atime (11)
- bytes (22)
- captures (11)
- cat (18)
- chain (6)
- chars (22)
- children (11)
- chunk (11)
-
chunk
_ while (11) - codepoints (22)
-
col
_ sep (11) - combination (22)
- delete (11)
-
delete
_ at (11) -
delete
_ if (22) - each (66)
-
each
_ byte (22) -
each
_ codepoint (22) -
each
_ grapheme _ cluster (14) -
each
_ line (22) -
each
_ pair (22) - echo (18)
- entries (17)
- force (11)
-
get
_ elements (11) - glob (18)
- gm (22)
-
grapheme
_ clusters (14) -
header
_ converters (11) -
irb
/ completion (11) - keys (11)
- length (11)
- line (11)
- lines (22)
- local (22)
- match (22)
-
max
_ by (44) - mktime (22)
- new (28)
- permutation (22)
- rake (11)
- rcptto (11)
-
rcptto
_ list (11) - readline (11)
- readlines (33)
- ready (11)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
ruby 1
. 6 feature (11) - rubygems (11)
- sample (44)
-
send
_ mail (11) - sendmail (11)
- size (22)
-
slice
_ after (22) -
slice
_ before (22) -
slice
_ when (11) - tap (11)
- tee (18)
-
to
_ ary (77) - utc (22)
- values (22)
-
values
_ at (11) - メソッド呼び出し(super・ブロック付き・yield) (11)
検索結果
先頭5件
-
MatchData
# to _ a -> [String] (18207.0) -
$&, $1, $2,... を格納した配列を返します。
...$&, $1, $2,... を格納した配列を返します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
//}
@see MatchData#captures... -
NilClass
# to _ a -> Array (18207.0) -
空配列 [] を返します。
...空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//}... -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (18207.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... -
REXML
:: Attributes # to _ a -> [Attribute] (18207.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 (18207.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 (18207.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]] (18207.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 (18207.0) -
self を配列に変換します。要素の順序は不定です。
...self を配列に変換します。要素の順序は不定です。
//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//}... -
Shell
:: Filter # to _ a -> [String] (18207.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Struct
# to _ a -> [object] (18207.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 の下位クラスのインスタンスに対し...