Class: Hashira::Smells::Census
- Inherits:
-
Object
- Object
- Hashira::Smells::Census
- Defined in:
- lib/hashira/smells/census.rb
Instance Method Summary collapse
-
#initialize(project, trees) ⇒ Census
constructor
A new instance of Census.
- #types ⇒ Object
Constructor Details
#initialize(project, trees) ⇒ Census
Returns a new instance of Census.
6 7 8 9 |
# File 'lib/hashira/smells/census.rb', line 6 def initialize(project, trees) @project = project @trees = trees end |
Instance Method Details
#types ⇒ Object
11 |
# File 'lib/hashira/smells/census.rb', line 11 def types = @trees.flat_map { |path, tree| harvest(@project.relative(path), tree) } |