Class: Yardstick::Rake::Measurement
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Yardstick::Rake::Measurement
- Defined in:
- lib/yardstick/rake/measurement.rb
Overview
A rake task for measuring docs in a set of files
Instance Attribute Summary collapse
-
#path ⇒ undefined
writeonly
List of paths to measure.
Instance Method Summary collapse
-
#initialize(name = :yardstick_measure) {|task| ... } ⇒ Yardstick::Rake::Measurement
constructor
Initializes a Measurement task.
-
#output=(output) ⇒ undefined
The path to the file where the measurements will be written.
-
#yardstick_measure ⇒ undefined
Measure the documentation.
Constructor Details
#initialize(name = :yardstick_measure) {|task| ... } ⇒ Yardstick::Rake::Measurement
Initializes a Measurement task
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/yardstick/rake/measurement.rb', line 50 def initialize(name = :yardstick_measure) @name = name @path = 'lib/**/*.rb' self.output = 'measurements/report.txt' yield self if block_given? define end |
Instance Attribute Details
#path=(value) ⇒ undefined (writeonly)
List of paths to measure
18 19 20 |
# File 'lib/yardstick/rake/measurement.rb', line 18 def path=(value) @path = value end |
Instance Method Details
#output=(output) ⇒ undefined
The path to the file where the measurements will be written
28 29 30 |
# File 'lib/yardstick/rake/measurement.rb', line 28 def output=(output) @output = Pathname(output) end |