Class: Hexx::RSpec::Metrics::Base
- Inherits:
-
Object
- Object
- Hexx::RSpec::Metrics::Base
- 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
Class Method Summary collapse
-
.load ⇒ Hexx::RSpec::Metrics
Loads metric settings and configures the current metric.
-
.run ⇒ undefined
Configures and runs the current metric.
Instance Method Summary collapse
-
#load ⇒ self
private
Loads the configuration file and configures the metric.
-
#run ⇒ undefined
abstract
private
Runs the metric.
Class Method Details
.load ⇒ Hexx::RSpec::Metrics
Loads metric settings and configures the current metric
18 19 20 |
# File 'lib/hexx-rspec/metrics/base.rb', line 18 def self.load __send__(:new).load end |
.run ⇒ undefined
Configures and runs the current metric
25 26 27 |
# File 'lib/hexx-rspec/metrics/base.rb', line 25 def self.run load.run end |
Instance Method Details
#load ⇒ self
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
34 35 36 |
# File 'lib/hexx-rspec/metrics/base.rb', line 34 def load self end |
#run ⇒ undefined
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
45 |
# File 'lib/hexx-rspec/metrics/base.rb', line 45 def run; end |