Module: Yardstick
- Defined in:
- lib/yardstick.rb,
lib/yardstick/cli.rb,
lib/yardstick/rule.rb,
lib/yardstick/method.rb,
lib/yardstick/version.rb,
lib/yardstick/rule_set.rb,
lib/yardstick/processor.rb,
lib/yardstick/measurable.rb,
lib/yardstick/measurement.rb,
lib/yardstick/ordered_set.rb,
lib/yardstick/rake/verify.rb,
lib/yardstick/measurement_set.rb,
lib/yardstick/rake/measurement.rb
Defined Under Namespace
Modules: Measurable, Method, Rake Classes: CLI, Measurement, MeasurementSet, OrderedSet, Processor, Rule, RuleSet
Constant Summary collapse
- ROOT =
Pathname(__FILE__).dirname.parent..freeze
- VERSION =
'0.9.3'
Class Method Summary collapse
-
.measure(path = 'lib/**/*.rb', options = {}) ⇒ Yardstick::MeasurementSet
Measure a list of files.
-
.measure_string(string, options = {}) ⇒ Yardstick::MeasurementSet
Measure a string of code and YARD documentation.
Class Method Details
.measure(path = 'lib/**/*.rb', options = {}) ⇒ Yardstick::MeasurementSet
Measure a list of files
41 42 43 |
# File 'lib/yardstick.rb', line 41 def self.measure(path = 'lib/**/*.rb', = {}) Processor.process_path(path) end |
.measure_string(string, options = {}) ⇒ Yardstick::MeasurementSet
Measure a string of code and YARD documentation
61 62 63 |
# File 'lib/yardstick.rb', line 61 def self.measure_string(string, = {}) Processor.process_string(string) end |