るりまサーチ

最速Rubyリファレンスマニュアル検索!
38件ヒット [1-38件を表示] (0.146秒)

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. matrix d
  4. openssl d
  5. kernel $-d

ライブラリ

クラス

キーワード

検索結果

Range#entries -> Array (18114.0)

self を配列に変換します。

...=> [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 # RangeError: cannot convert endless range to an array
//}...

Gem::OldFormat#file_entries=(file_entries) (9209.0)

Gem パッケージに含まれるファイルの配列をセットします。

...Gem パッケージに含まれるファイルの配列をセットします。

@param file_entries...

Gem::OldFormat#file_entries -> Array (9102.0)

Gem パッケージに含まれるファイルの配列を返します。

Gem パッケージに含まれるファイルの配列を返します。

Range#to_a -> Array (3014.0)

self を配列に変換します。

...=> [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 # RangeError: cannot convert endless range to an array
//}...