Class: Hexx::RSpec::Metrics::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hexx-rspec/metrics/base.rb

Overview

Base class for metrics configurators

To be used by the 'hexx-suit' module as well

Direct Known Subclasses

SimpleCov

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loadHexx::RSpec::Metrics

Loads metric settings and configures the current metric

Returns:

  • the configured metric object



18
19
20
# File 'lib/hexx-rspec/metrics/base.rb', line 18

def self.load
  __send__(:new).load
end

.runundefined

Configures and runs the current metric

Returns:



25
26
27
# File 'lib/hexx-rspec/metrics/base.rb', line 25

def self.run
  load.run
end

Instance Method Details

#loadself

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.

Loads the configuration file and configures the metric

Returns:

API:

  • private



34
35
36
# File 'lib/hexx-rspec/metrics/base.rb', line 34

def load
  self
end

#runundefined

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.

This method is abstract.

Runs the metric

Returns:

API:

  • private



45
# File 'lib/hexx-rspec/metrics/base.rb', line 45

def run; end