Class: Rubyzen::Configuration
- Inherits:
-
Object
- Object
- Rubyzen::Configuration
- Defined in:
- lib/rubyzen.rb
Overview
Holds project path configuration with auto-discovery support.
Resolution order:
-
Explicit paths via #paths= (set via
Rubyzen.configure) -
Auto-discovery of
app/,lib/,src/,spec/fromDir.pwd
Instance Attribute Summary collapse
-
#paths ⇒ Object
writeonly
Sets explicit paths to scan.
Instance Method Summary collapse
-
#project_paths ⇒ Array<String>
Returns the resolved project paths.
Instance Attribute Details
#paths=(value) ⇒ Object (writeonly)
Sets explicit paths to scan. Relative paths are resolved against Dir.pwd.
70 71 72 |
# File 'lib/rubyzen.rb', line 70 def paths=(value) @paths = value end |
Instance Method Details
#project_paths ⇒ Array<String>
Returns the resolved project paths.
75 76 77 |
# File 'lib/rubyzen.rb', line 75 def project_paths resolve_paths(@paths) || auto_discover_paths end |