Class: AnalDiffist::TargetFinder
- Inherits:
-
Object
- Object
- AnalDiffist::TargetFinder
- Defined in:
- lib/analdiffist/target_finder.rb
Instance Method Summary collapse
-
#initialize ⇒ TargetFinder
constructor
A new instance of TargetFinder.
- #targets ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ TargetFinder
Returns a new instance of TargetFinder.
3 4 |
# File 'lib/analdiffist/target_finder.rb', line 3 def initialize end |
Instance Method Details
#targets ⇒ Object
5 6 7 8 9 10 |
# File 'lib/analdiffist/target_finder.rb', line 5 def targets @targets = [] @targets << "lib" if Dir.exists?("lib") @targets << "app" if Dir.exists?("app") @targets end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/analdiffist/target_finder.rb', line 12 def to_s targets.join(' ') end |