ライブラリ
- ビルトイン (341)
- matrix (66)
- mkmf (66)
-
net
/ http (11) - pathname (22)
- rake (11)
-
rdoc
/ context (55) -
rdoc
/ top _ level (22) -
rexml
/ document (11) -
rubygems
/ command _ manager (22) -
rubygems
/ commands / dependency _ command (22) -
rubygems
/ commands / which _ command (11) -
rubygems
/ dependency _ installer (22) -
rubygems
/ dependency _ list (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ source _ index (11) -
rubygems
/ spec _ fetcher (11) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (22)
- uri (11)
クラス
- Array (125)
- BasicObject (11)
-
Enumerator
:: Lazy (28) -
Gem
:: CommandManager (22) -
Gem
:: Commands :: DependencyCommand (22) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: DependencyInstaller (22) -
Gem
:: DependencyList (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: SourceIndex (11) -
Gem
:: SpecFetcher (11) - Matrix (66)
-
Net
:: HTTP (11) - Pathname (22)
-
RDoc
:: Context (55) -
RDoc
:: TopLevel (22) - Range (22)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Socket
:: AncillaryData (11) -
Socket
:: Ifaddr (11) - String (11)
-
URI
:: Generic (11)
モジュール
- Enumerable (144)
- Kernel (77)
-
REXML
:: Node (11)
キーワード
- bsearch (44)
-
bsearch
_ index (18) - detect (22)
- filter (18)
-
find
_ all (44) -
find
_ command (11) -
find
_ command _ possibilities (11) -
find
_ enclosing _ module _ named (11) -
find
_ executable (11) -
find
_ first _ recursive (11) -
find
_ gems (11) -
find
_ gems _ with _ sources (11) -
find
_ header (11) -
find
_ index (99) -
find
_ library (22) -
find
_ local _ symbol (22) -
find
_ matching (11) -
find
_ module _ named (22) -
find
_ name (22) -
find
_ paths (11) -
find
_ proxy (11) -
find
_ reverse _ dependencies (11) -
find
_ spec _ by _ name _ and _ version (11) -
find
_ symbol (11) -
find
_ system _ command (18) -
find
_ type (22) - ifindex (11)
- index (66)
-
ipv6
_ pktinfo _ ifindex (11) - lazy (11)
-
method
_ missing (11) - namespace (11)
- pack (19)
- propfind (11)
-
record
_ location (11) - select (33)
- unpack (11)
検索結果
先頭5件
-
Pathname
# find -> Enumerator (18133.0) -
self 配下のすべてのファイルやディレクトリを 一つずつ引数 pathname に渡してブロックを実行します。
...すべてのファイルやディレクトリを
一つずつ引数 pathname に渡してブロックを実行します。
require 'find'
Find.find(self.to_s) {|f| yield Pathname.new(f)}
と同じです。
ブロックを省略した場合は Enumerator を返します。
@see Find.#find... -
Pathname
# find {|pathname| . . . } -> nil (18133.0) -
self 配下のすべてのファイルやディレクトリを 一つずつ引数 pathname に渡してブロックを実行します。
...すべてのファイルやディレクトリを
一つずつ引数 pathname に渡してブロックを実行します。
require 'find'
Find.find(self.to_s) {|f| yield Pathname.new(f)}
と同じです。
ブロックを省略した場合は Enumerator を返します。
@see Find.#find... -
Pathname
# find(ignore _ error: true) -> Enumerator (18133.0) -
self 配下のすべてのファイルやディレクトリを 一つずつ引数 pathname に渡してブロックを実行します。
...クを実行します。
require 'find'
Find.find(self.to_s) {|f| yield Pathname.new(f)}
と同じです。
ブロックを省略した場合は Enumerator を返します。
@param ignore_error 探索中に発生した例外を無視するかどうかを指定します。
@see Find.#find... -
Pathname
# find(ignore _ error: true) {|pathname| . . . } -> nil (18133.0) -
self 配下のすべてのファイルやディレクトリを 一つずつ引数 pathname に渡してブロックを実行します。
...クを実行します。
require 'find'
Find.find(self.to_s) {|f| yield Pathname.new(f)}
と同じです。
ブロックを省略した場合は Enumerator を返します。
@param ignore_error 探索中に発生した例外を無視するかどうかを指定します。
@see Find.#find... -
Gem
:: GemPathSearcher # find(path) -> Gem :: Specification | nil (18108.0) -
与えられたパスにマッチする Gem::Specification を一つだけ返します。
...与えられたパスにマッチする Gem::Specification を一つだけ返します。
@see Array#find... -
Enumerable
# find(ifnone = nil) -> Enumerator (15121.0) -
要素に対してブロックを評価した値が真になった最初の要素を返します。
...ruby]{
# 最初の 3 の倍数を探す
p [1, 2, 3, 4, 5].find {|i| i % 3 == 0 } # => 3
p [2, 2, 2, 2, 2].find {|i| i % 3 == 0 } # => nil
# ifnone の使用例
ifnone = proc { raise ArgumentError, "item not found" }
p [1, 2, 3, 4, 5].find(ifnone) {|i| i % 7 == 0 }
# ArgumentError: item not... -
Enumerable
# find(ifnone = nil) {|item| . . . } -> object (15121.0) -
要素に対してブロックを評価した値が真になった最初の要素を返します。
...ruby]{
# 最初の 3 の倍数を探す
p [1, 2, 3, 4, 5].find {|i| i % 3 == 0 } # => 3
p [2, 2, 2, 2, 2].find {|i| i % 3 == 0 } # => nil
# ifnone の使用例
ifnone = proc { raise ArgumentError, "item not found" }
p [1, 2, 3, 4, 5].find(ifnone) {|i| i % 7 == 0 }
# ArgumentError: item not... -
Enumerable
# find _ index -> Enumerator (6128.0) -
条件に一致する最初の要素の位置を返します。
...位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}
ブロックが与えられた場合には、各要素を引数として先頭から順にブロックを実行......を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられなかった場... -
Enumerable
# find _ index {|obj| . . . } -> Integer | nil (6128.0) -
条件に一致する最初の要素の位置を返します。
...位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}
ブロックが与えられた場合には、各要素を引数として先頭から順にブロックを実行......を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられなかった場... -
Enumerable
# find _ index(val) -> Integer | nil (6128.0) -
条件に一致する最初の要素の位置を返します。
...位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}
ブロックが与えられた場合には、各要素を引数として先頭から順にブロックを実行......を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられなかった場... -
Enumerable
# find _ all -> Enumerator (6121.0) -
各要素に対してブロックを評価した値が真であった要素を全て含む配列を 返します。真になる要素がひとつもなかった場合は空の配列を返します。
...します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
(1..10).find_all # => #<Enumerator: 1..10:find_all>
(1..10).find_all { |i| i % 3 == 0 } # => [3, 6, 9]
[1,2,3,4,5].select # => #<Enumerator: [1, 2,... -
Enumerable
# find _ all {|item| . . . } -> [object] (6121.0) -
各要素に対してブロックを評価した値が真であった要素を全て含む配列を 返します。真になる要素がひとつもなかった場合は空の配列を返します。
...します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
(1..10).find_all # => #<Enumerator: 1..10:find_all>
(1..10).find_all { |i| i % 3 == 0 } # => [3, 6, 9]
[1,2,3,4,5].select # => #<Enumerator: [1, 2,... -
RDoc
:: Context # find _ enclosing _ module _ named(name) -> RDoc :: NormalModule | nil (6118.0) -
find a module at a higher scope
...
find a module at a higher scope...