るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. openssl n
  3. pop n_mails
  4. openssl n=
  5. pop n_bytes

ライブラリ

クラス

モジュール

キーワード

検索結果

Pathname#entries -> [Pathname] (24214.0)

self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。

...hname オブジェクトの配列を返します。

@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。

//emlist[例][ruby]{
require 'pathname'
require 'pp'

pp Pathname('/usr/local').entries
# => [#<Pathname:.>,
# #<Pathn...
...ame:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathname:include>,
# #<Pathname:lib>,
# #<Pathname:opt>,
# #<Pathname:sbin>,
# #<Pathname:share>,
# #<Pathname:var>]
//}

@see Dir.entries...

Enumerable#entries(*args) -> [object] (24208.0)

全ての要素を含む配列を返します。

...@param args each の呼び出し時に引数として渡されます。

//emlist[例][ruby]{
(1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7]
{ 'a'=>1, 'b'=>2, 'c'=>3 }.to_a #=> [["a", 1], ["b", 2], ["c", 3]]

require 'prime'
Prime.entries 10 #=> [2, 3, 5, 7]
//}...

Range#entries -> Array (24208.0)

self を配列に変換します。

...RangeError 終端のない Range オブジェクトを変換しようとしたときに発生します。

//emlist[例][ruby]{
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 # RangeError: cannot convert endless range to an array
//}...

Gem::Format#file_entries=(file_entries) (12409.0)

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

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

@param file_entries...

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

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

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

@param file_entries...

絞り込み条件を変える

Gem::Format#file_entries -> Array (12202.0)

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

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

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

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

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

Enumerable#to_a(*args) -> [object] (6008.0)

全ての要素を含む配列を返します。

...@param args each の呼び出し時に引数として渡されます。

//emlist[例][ruby]{
(1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7]
{ 'a'=>1, 'b'=>2, 'c'=>3 }.to_a #=> [["a", 1], ["b", 2], ["c", 3]]

require 'prime'
Prime.entries 10 #=> [2, 3, 5, 7]
//}...

Range#to_a -> Array (6008.0)

self を配列に変換します。

...RangeError 終端のない Range オブジェクトを変換しようとしたときに発生します。

//emlist[例][ruby]{
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 # RangeError: cannot convert endless range to an array
//}...