るりまサーチ

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

別のキーワード

  1. _builtin eql?
  2. _builtin reject
  3. _builtin empty?
  4. _builtin include?
  5. _builtin reject!

ライブラリ

クラス

モジュール

オブジェクト

検索結果

<< < ... 13 14 15 >>

tsort (12.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...と強連結成分に関するモジュールを提供します。

=== Example

//emlist[][ruby]{
require 'tsort'

class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end

{1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tsort
#=> [3,...
...each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {|n| Array === n}
raise TSort::Cyclic.new("cyclic dependencies: #{fs.join ', '}")
end
n = ns.first
if Array === n
outputs, inputs, block = n
inputs_time =...
...tsort_each_child(node, &block)
@dep[node].each(&block)
end
include TSort
end

def command(arg)
print arg, "\n"
system arg
end

m = Make.new
m.rule(%w[t1]) { command 'date > t1' }
m.rule(%w[t2]) { command 'date > t2' }
m.rule(%w[t3]) { command 'date > t3' }
m.rule(%w[t4], %w[t1 t3]) { co...

ENV.filter -> Enumerator (4.0)

環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ を返します。

環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ
を返します。

ENV.select -> Enumerator (4.0)

環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ を返します。

環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ
を返します。
<< < ... 13 14 15 >>