Class: MOSAIK::Metric
- Inherits:
-
Object
- Object
- MOSAIK::Metric
- Defined in:
- lib/mosaik/metric.rb
Direct Known Subclasses
MOSAIK::Metrics::ABCSize, MOSAIK::Metrics::Cohesion, MOSAIK::Metrics::Complexity, MOSAIK::Metrics::Coupling, MOSAIK::Metrics::Modularity
Instance Attribute Summary collapse
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(options, graph) ⇒ Metric
constructor
A new instance of Metric.
Constructor Details
#initialize(options, graph) ⇒ Metric
Returns a new instance of Metric.
7 8 9 10 |
# File 'lib/mosaik/metric.rb', line 7 def initialize(, graph) @options = @graph = graph end |
Instance Attribute Details
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
5 6 7 |
# File 'lib/mosaik/metric.rb', line 5 def graph @graph end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/mosaik/metric.rb', line 5 def @options end |
Instance Method Details
#evaluate ⇒ Object
12 13 14 |
# File 'lib/mosaik/metric.rb', line 12 def evaluate raise NotImplementedError end |