89件ヒット
[1-89件を表示]
(0.168秒)
ライブラリ
- ビルトイン (34)
- pathname (11)
-
rubygems
/ format (22) -
rubygems
/ old _ format (22)
クラス
-
Gem
:: Format (22) -
Gem
:: OldFormat (22) - Pathname (11)
- Range (12)
モジュール
- Enumerable (22)
キーワード
-
file
_ entries (22) -
file
_ entries= (22) -
to
_ a (17)
検索結果
先頭5件
-
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
//}...