Class: Moult::CyclesReport::Finding
- Inherits:
-
Struct
- Object
- Struct
- Moult::CyclesReport::Finding
- Defined in:
- lib/moult/cycles_report.rb
Overview
One circular file-dependency group. cycle_group ("scc:edges are
the in-cycle dependencies, each with a representative reference site.
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#cycle_group ⇒ Object
Returns the value of attribute cycle_group.
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#files ⇒ Object
Returns the value of attribute files.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def category @category end |
#confidence ⇒ Object
Returns the value of attribute confidence
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def confidence @confidence end |
#cycle_group ⇒ Object
Returns the value of attribute cycle_group
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def cycle_group @cycle_group end |
#edges ⇒ Object
Returns the value of attribute edges
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def edges @edges end |
#files ⇒ Object
Returns the value of attribute files
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def files @files end |
#reasons ⇒ Object
Returns the value of attribute reasons
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def reasons @reasons end |
#size ⇒ Object
Returns the value of attribute size
16 17 18 |
# File 'lib/moult/cycles_report.rb', line 16 def size @size end |
Instance Method Details
#to_h ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/moult/cycles_report.rb', line 17 def to_h { cycle_group: cycle_group, category: category, confidence: confidence, size: size, files: files, reasons: reasons.map(&:to_h), edges: edges.map { |e| {src: e.src, dst: e.dst, constant: e.constant, span: e.span.to_h} } } end |