Class: AdLint::FunctionMetric
- Inherits:
-
CodeMetric
- Object
- CodeMetric
- AdLint::FunctionMetric
- Defined in:
- lib/adlint/metric.rb
Direct Known Subclasses
FN_CALL_Metric, FN_CSUB_Metric, FN_CYCM_Metric, FN_GOTO_Metric, FN_LINE_Metric, FN_NEST_Metric, FN_PARA_Metric, FN_PATH_Metric, FN_RETN_Metric, FN_STMT_Metric, FN_UELS_Metric, FN_UNRC_Metric, FN_UNUV_Metric
Instance Method Summary collapse
-
#initialize(name, fun_id, loc, val) ⇒ FunctionMetric
constructor
A new instance of FunctionMetric.
Methods inherited from CodeMetric
Constructor Details
#initialize(name, fun_id, loc, val) ⇒ FunctionMetric
Returns a new instance of FunctionMetric.
80 81 82 83 84 85 |
# File 'lib/adlint/metric.rb', line 80 def initialize(name, fun_id, loc, val) @name = name @fun_id = fun_id @loc = loc @val = val end |