Class: MetricFu::Grapher
- Inherits:
-
Object
- Object
- MetricFu::Grapher
- Defined in:
- lib/graphs/grapher.rb
Direct Known Subclasses
FlayGrapher, FlogGrapher, RcovGrapher, ReekGrapher, RoodiGrapher
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Grapher
constructor
A new instance of Grapher.
Constructor Details
#initialize ⇒ Grapher
Returns a new instance of Grapher.
3 4 5 |
# File 'lib/graphs/grapher.rb', line 3 def initialize self.class.require_gruff end |
Class Method Details
.require_gruff ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/graphs/grapher.rb', line 7 def self.require_gruff require 'gruff' rescue LoadError puts "#"*99 + "\n" + "If you want to use metric_fu's graphing features then you'll need to install the gems " + "'topfunky-gruff' (or 'umang-gruff' if you use 1.9x) and 'rmagick' (and rmagick requires ImageMagick). "+ "If you don't want to deal with that, then make sure you set config.graphs = [] (see the metric_fu's homepage for more details) "+ "to indicate that you don't want graphing." + "\n" + "#"*99 raise end |