[gegl] use ARGV.length instead of ARGV.count



commit 54025c0c1bd81e902d6c9069d7078578e6c68fb1
Author: Nils Philippsen <nils redhat com>
Date:   Wed Jan 20 17:31:19 2010 +0100

    use ARGV.length instead of ARGV.count
    
    in older ruby versions, arrays don't have the .count method

 tools/gobj2dot.rb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/gobj2dot.rb b/tools/gobj2dot.rb
index 6b1c18a..7ee4eed 100755
--- a/tools/gobj2dot.rb
+++ b/tools/gobj2dot.rb
@@ -17,13 +17,13 @@
 
 require 'find'
 
-if ARGV[0] == nil or ARGV.count != 1 or ARGV[0] == "-h"
+if ARGV[0] == nil or ARGV.length != 1 or ARGV[0] == "-h"
   puts "Utility for generating inheritance diagrams from c-code using "
   puts "the gobject library"
-	puts "Usage: gobjviz.rb path"
+  puts "Usage: gobjviz.rb path"
   puts "       or"
   puts "       gobjviz.rb path | dot -Tpng > output.png"
-	exit;
+  exit;
 end
 
 dir = ARGV[0]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]