626件ヒット
[101-200件を表示]
(0.093秒)
ライブラリ
- ビルトイン (449)
- benchmark (12)
-
cgi
/ core (24) - csv (36)
- dbm (12)
- matrix (24)
- rake (36)
-
rubygems
/ platform (12) - set (9)
-
webrick
/ httputils (12)
クラス
-
ARGF
. class (72) - Array (168)
-
Benchmark
:: Tms (12) - CSV (12)
-
CSV
:: Table (24) - DBM (12)
-
Gem
:: Platform (12) - Hash (12)
- MatchData (60)
- Matrix (12)
- NilClass (12)
- Object (36)
-
Rake
:: FileList (36) - Range (14)
-
RubyVM
:: InstructionSequence (12) - Set (12)
- Time (12)
- Vector (12)
-
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (48)
キーワード
- << (12)
- == (12)
- [] (48)
- combination (24)
- entries (7)
-
header
_ converters (12) -
max
_ by (48) - permutation (24)
- readlines (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - sample (48)
- tap (12)
-
to
_ ary (60) -
values
_ at (12)
検索結果
先頭5件
-
NilClass
# to _ a -> Array (18209.0) -
空配列 [] を返します。
...空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//}... -
RubyVM
:: InstructionSequence # to _ a -> Array (18209.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},... -
Set
# to _ a -> Array (18209.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"]
//}... -
Time
# to _ a -> Array (18209.0) -
時刻を10要素の配列で返します。
...rue/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 構造体に合わせています。ただし、
tm 構造... -
CGI
:: QueryExtension :: Value # to _ a -> Array (18204.0) -
@todo
@todo -
Benchmark
:: Tms # to _ a -> Array (18203.0) -
6 要素の配列を返します。
6 要素の配列を返します。
要素は以下の順番で配列に格納されています。
* ラベル
* user CPU time
* system CPU time,
* 子プロセスの user CPU time
* 子プロセスの system CPU time,
* 実経過時間 -
Gem
:: Platform # to _ a -> Array (18203.0) -
自身にセットされている CPU, OS, バージョンを配列として返します。
自身にセットされている CPU, OS, バージョンを配列として返します。 -
Range
# to _ a -> Array (15246.0) -
self を配列に変換します。
...]{
p (5..0).to_a # => []
p (0..3).to_a # => [0, 1, 2, 3]
p ('a'..'c').to_a # => ["a", "b", "c"]
p (:a..:d).to_a # => [:a, :b, :c, :d]
require 'date'
p (Date.new(1965, 4, 14) .. Date.new(1965, 4, 14)).to_a # => [#<Date: 1965-04-14 ((2438865j,0s,0n),+0s,2299161j)>]
(1..).to_a # RangeEr......ror: cannot convert endless range to an array
//}... -
ARGF
. class # to _ a(limit) -> Array (15210.0) -
ARGFの各行を配列に読み込んで返します。rsがnilの場合は要素に各ファイルを すべて読み込んだ配列を返します。
ARGFの各行を配列に読み込んで返します。rsがnilの場合は要素に各ファイルを
すべて読み込んだ配列を返します。
@param rs 行区切り文字
@param limit 最大の読み込みバイト数
lines = ARGF.readlines
lines[0] # => "This is line one\n"
@see $/, Kernel.#readlines, IO#readlines -
ARGF
. class # to _ a(rs = $ / ) -> Array (15210.0) -
ARGFの各行を配列に読み込んで返します。rsがnilの場合は要素に各ファイルを すべて読み込んだ配列を返します。
ARGFの各行を配列に読み込んで返します。rsがnilの場合は要素に各ファイルを
すべて読み込んだ配列を返します。
@param rs 行区切り文字
@param limit 最大の読み込みバイト数
lines = ARGF.readlines
lines[0] # => "This is line one\n"
@see $/, Kernel.#readlines, IO#readlines