Class: Hexx::Suit::Metrics::MetricFu::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/hexx/suit/metrics/metric_fu/base.rb

Overview

Base class for metrics configured via metric_fu

Direct Known Subclasses

Churn, Reek, Roodi, Saikuro

Constant Summary

Constants inherited from Base

Base::SYSTEM

Class Method Summary collapse

Methods inherited from Base

#load, run, #run

Class Method Details

.loadself

Initializes and configures the metric from a corresponding yml

Returns:

  • (self)

25
26
27
28
29
# File 'lib/hexx/suit/metrics/metric_fu/base.rb', line 25

def load
  configure { |metric| options.each { |option| add(metric, option) } }

  super
end

.newHexx::Suit::Metrics::MetricFu

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Constructs the object and loads 'metric_fu' dependency


16
17
18
19
# File 'lib/hexx/suit/metrics/metric_fu/base.rb', line 16

def self.new
  require "metric_fu"
  super
end