Class: AnalDiffist::TargetFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/analdiffist/target_finder.rb

Instance Method Summary collapse

Constructor Details

#initializeTargetFinder

Returns a new instance of TargetFinder.



3
4
# File 'lib/analdiffist/target_finder.rb', line 3

def initialize
end

Instance Method Details

#targetsObject



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_sObject



12
13
14
# File 'lib/analdiffist/target_finder.rb', line 12

def to_s
  targets.join(' ')
end