Class: MetricFu::MetricStats
- Inherits:
-
Metric
- Object
- Metric
- MetricFu::MetricStats
show all
- Defined in:
- lib/metric_fu/metrics/stats/metric.rb
Instance Attribute Summary
Attributes inherited from Metric
#activated, #enabled
Instance Method Summary
collapse
Methods inherited from Metric
#configured_run_options, #default_run_args, enabled_metrics, #gem_name, get_metric, #initialize, metrics, #run, #run_external, #run_options
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class MetricFu::Metric
Instance Method Details
#activate ⇒ Object
23
24
25
26
|
# File 'lib/metric_fu/metrics/stats/metric.rb', line 23
def activate
activate_library "code_metrics"
super
end
|
#default_run_options ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/metric_fu/metrics/stats/metric.rb', line 7
def default_run_options
{
additional_test_directories: [{ glob_pattern: File.join(".", "spec", "**", "*_spec.rb"), file_pattern: "spec" }],
additional_app_directories: [{ glob_pattern: File.join(".", "engines", "**", "*.rb"), file_pattern: "" }],
}
end
|
#enable ⇒ Object
19
20
21
|
# File 'lib/metric_fu/metrics/stats/metric.rb', line 19
def enable
super
end
|
#has_graph? ⇒ Boolean
15
16
17
|
# File 'lib/metric_fu/metrics/stats/metric.rb', line 15
def has_graph?
true
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/metric_fu/metrics/stats/metric.rb', line 3
def name
:stats
end
|