Class: Shenandoah::DefaultLocator
- Inherits:
-
Object
- Object
- Shenandoah::DefaultLocator
- Defined in:
- lib/shenandoah/locator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#main_path ⇒ Object
Returns the value of attribute main_path.
-
#spec_path ⇒ Object
Returns the value of attribute spec_path.
-
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DefaultLocator
constructor
A new instance of DefaultLocator.
- #spec_files ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DefaultLocator
Returns a new instance of DefaultLocator.
7 8 9 10 11 |
# File 'lib/shenandoah/locator.rb', line 7 def initialize( = {}) @main_path = File.([:main_path] || "lib") @spec_path = File.([:spec_path] || "spec") @tmp_path = File.([:tmp_path] || ENV['TMPDIR'] || "tmp") end |
Instance Attribute Details
#main_path ⇒ Object
Returns the value of attribute main_path.
5 6 7 |
# File 'lib/shenandoah/locator.rb', line 5 def main_path @main_path end |
#spec_path ⇒ Object
Returns the value of attribute spec_path.
5 6 7 |
# File 'lib/shenandoah/locator.rb', line 5 def spec_path @spec_path end |
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
5 6 7 |
# File 'lib/shenandoah/locator.rb', line 5 def tmp_path @tmp_path end |
Instance Method Details
#spec_files ⇒ Object
13 14 15 |
# File 'lib/shenandoah/locator.rb', line 13 def spec_files FileList["#{spec_path}/**/*_spec.js"] end |