Class: ArchUnit::Metrics::FluentApi::LCOMMetricsBuilder
- Inherits:
-
Object
- Object
- ArchUnit::Metrics::FluentApi::LCOMMetricsBuilder
- Includes:
- MetricReportBuilder
- Defined in:
- lib/archunit/metrics/fluentapi/lcom_metrics_builder.rb
Overview
Fluent LCOM metric names for one immutable metrics scope.
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope) ⇒ LCOMMetricsBuilder
constructor
A new instance of LCOMMetricsBuilder.
Methods included from MetricReportBuilder
Constructor Details
#initialize(scope) ⇒ LCOMMetricsBuilder
Returns a new instance of LCOMMetricsBuilder.
16 17 18 19 20 21 |
# File 'lib/archunit/metrics/fluentapi/lcom_metrics_builder.rb', line 16 def initialize(scope) raise ArgumentError, 'scope must be a MetricsBuilder' unless scope.is_a?(MetricsBuilder) @scope = scope freeze end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
14 15 16 |
# File 'lib/archunit/metrics/fluentapi/lcom_metrics_builder.rb', line 14 def scope @scope end |