Class: JsCoverage
- Inherits:
-
Object
- Object
- JsCoverage
- Defined in:
- lib/tasks/jasmine_node_coverage/js_coverage.rb
Instance Method Summary collapse
-
#initialize(jscoverage) ⇒ JsCoverage
constructor
A new instance of JsCoverage.
- #run(source_dir, coverage_dir) ⇒ Object
Constructor Details
#initialize(jscoverage) ⇒ JsCoverage
Returns a new instance of JsCoverage.
3 4 5 |
# File 'lib/tasks/jasmine_node_coverage/js_coverage.rb', line 3 def initialize(jscoverage) @jscoverage = jscoverage end |
Instance Method Details
#run(source_dir, coverage_dir) ⇒ Object
7 8 9 |
# File 'lib/tasks/jasmine_node_coverage/js_coverage.rb', line 7 def run(source_dir, coverage_dir) return `"#{@jscoverage}" "#{source_dir}" "#{coverage_dir}" 2>&1` end |