Sha256: 80b2c856273f2813a8156f6fd497029c12afcfb6662eb7097760817ee9d6ebe6

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

module Depcheck
  module SimpleOutput

    def self.post(objs)
      objs = objs.sort_by { |obj| obj.dependencies.size }.reverse

      objs.each_with_index do |obj, index|
        puts "#{index + 1}. #{obj.name} - #{obj.dependencies.size} \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

1 entries across 1 versions & 1 rubygems

Version Path
depcheck-0.1.0 lib/depcheck/output/simple_output.rb