Sha256: 3ecda915910663f47db38d49267182cb4aec6daa1a8e750bd9db3ea87996724f
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
module Depcheck module SimpleOutput def self.post(objs, verbose) objs = objs.sort_by { |obj| obj.dependencies.size }.reverse objs.each_with_index do |obj, index| print "#{index + 1}. #{obj.name} - #{obj.dependencies.size}" print " - [#{obj.dependencies.join(', ')}]" if verbose print "\n" end end def self.post_usage(objs) objs = objs.sort_by(&:usage).reverse objs.each_with_index do |obj, index| puts "#{index + 1}. #{obj.name} - #{obj.usage}\n" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
depcheck-0.5.0 | lib/depcheck/output/simple_output.rb |
depcheck-0.4.0 | lib/depcheck/output/simple_output.rb |
depcheck-0.3.0 | lib/depcheck/output/simple_output.rb |