From 4795daf1bce88cca8c3b14dc5c75a349838ee98a Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Mar 2002 18:24:46 +0000 Subject: * lib/pp.rb (pp): return nil like p. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tsort.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/tsort.rb') diff --git a/lib/tsort.rb b/lib/tsort.rb index 58e073dff4..2c3c4b2c4e 100644 --- a/lib/tsort.rb +++ b/lib/tsort.rb @@ -55,7 +55,7 @@ TSort uses Hash internally. --- strongly_connected_components returns strongly connected components as an array of array of nodes. - The array is sorted as children to parents. + The array is sorted from children to parents. Each elements of the array represents a strongly connected component. --- each_strongly_connected_component {|nodes| ...} @@ -114,7 +114,8 @@ Very simple `make' like tool can be implemented as follows: outputs_time = nil end if outputs_time == nil || - inputs_time != nil && outputs_time < inputs_time # `<=' is better? + inputs_time != nil && outputs_time <= inputs_time + sleep 1 if inputs_time != nil && inputs_time.to_i == Time.now.to_i block.call end end -- cgit v1.2.3