Class: Courgette::Commands::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/courgette/commands/stats.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Stats

Returns a new instance of Stats.



6
7
8
# File 'lib/courgette/commands/stats.rb', line 6

def initialize options
  @options = options
end

Instance Method Details



16
17
18
# File 'lib/courgette/commands/stats.rb', line 16

def print_reference fo, fi, ref
  print "%8d %8d: %s\n" % [fo, fi, ref.join("::")]
end

#runObject



10
11
12
13
14
# File 'lib/courgette/commands/stats.rb', line 10

def run
  stats.each do |fanout, fanin, reference|
    print_reference fanout, fanin, reference
  end
end