るりまサーチ

最速Rubyリファレンスマニュアル検索!
1424件ヒット [1401-1424件を表示] (0.065秒)
トップページ > クエリ:Hash#key[x] > クエリ:new[x] > クエリ:include?[x] > クエリ:slice[x] > クエリ:key[x] > クエリ:mark_hashentry[x] > クエリ:NEWS for Ruby 2.7.0[x]

別のキーワード

  1. openssl public_key
  2. argf.class lines
  3. argf.class each_line
  4. openssl public_key=
  5. _builtin each_key

ライブラリ

クラス

モジュール

オブジェクト

検索結果

<< < ... 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 >>