Class: LogStats::Base
- Inherits:
-
Object
- Object
- LogStats::Base
- Defined in:
- lib/logstats.rb
Instance Attribute Summary collapse
-
#worklog ⇒ Object
readonly
Returns the value of attribute worklog.
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(source_file, output_path) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#worklog ⇒ Object (readonly)
Returns the value of attribute worklog.
6 7 8 |
# File 'lib/logstats.rb', line 6 def worklog @worklog end |
Instance Method Details
#generate! ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/logstats.rb', line 14 def generate! # Calculate the stats from the file locals={} @worklog.stats.each { |key, data| locals[key]=data } process_haml(locals) return true end |