Class: WhatTheGem::Stats

Inherits:
Command show all
Defined in:
lib/whatthegem/stats.rb,
lib/whatthegem/stats/meters.rb,
lib/whatthegem/stats/definitions.rb

Defined Under Namespace

Modules: Definitions Classes: Meter, Metric

Constant Summary

Constants inherited from Command

Command::HEADER_TEMPLATE

Instance Attribute Summary

Attributes inherited from Command

#gem

Instance Method Summary collapse

Methods inherited from Command

call, #call, get, #initialize, #meta, register

Constructor Details

This class inherits a constructor from WhatTheGem::Command

Instance Method Details

#outputObject



5
6
7
# File 'lib/whatthegem/stats.rb', line 5

def output
  Definitions.meters.map { |meter| meter.call(gem).format }.join("\n")
end