Class: Hashira::Smells::Census
- Inherits:
-
Object
- Object
- Hashira::Smells::Census
- Defined in:
- lib/hashira/smells/census.rb
Instance Attribute Summary collapse
-
#ownership ⇒ Object
readonly
Returns the value of attribute ownership.
Instance Method Summary collapse
-
#initialize(project, trees) ⇒ Census
constructor
A new instance of Census.
- #types ⇒ Object
Constructor Details
Instance Attribute Details
#ownership ⇒ Object (readonly)
Returns the value of attribute ownership.
12 13 14 |
# File 'lib/hashira/smells/census.rb', line 12 def ownership @ownership end |
Instance Method Details
#types ⇒ Object
14 |
# File 'lib/hashira/smells/census.rb', line 14 def types = @trees.flat_map { |path, tree| harvest(@project.relative(path), tree) } |