Class: Jstats::Loc
- Inherits:
-
Object
- Object
- Jstats::Loc
- Defined in:
- lib/jstats/loc.rb
Instance Attribute Summary collapse
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
Instance Method Summary collapse
-
#initialize(directories) ⇒ Loc
constructor
A new instance of Loc.
Constructor Details
#initialize(directories) ⇒ Loc
Returns a new instance of Loc.
7 8 9 10 11 12 13 |
# File 'lib/jstats/loc.rb', line 7 def initialize(directories) @java_files = JavaParse::JavaFiles.new(directories) @distrib = {(0...100) => 0, (100...200) => 0, (200...300) => 0, (300...400) => 0, (400...500) => 0, (500...600) => 0, (600...700) => 0, (700...800) => 0, (800...900) => 0, (900...1000) => 0, (1000...5000) => 0 } run_distrib @tables = [total_lines_table, distribution_table] end |
Instance Attribute Details
#tables ⇒ Object (readonly)
Returns the value of attribute tables.
5 6 7 |
# File 'lib/jstats/loc.rb', line 5 def tables @tables end |