Class: Courgette::Commands::Stats
- Inherits:
-
Object
- Object
- Courgette::Commands::Stats
- Defined in:
- lib/courgette/commands/stats.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Stats
constructor
A new instance of Stats.
- #print_reference(fo, fi, ref) ⇒ Object
- #run ⇒ Object
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 = end |
Instance Method Details
#print_reference(fo, fi, ref) ⇒ Object
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 |
#run ⇒ Object
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 |