class Guard::Reek::Runner::Paths

this class decides which files are run against reek

Public Class Methods

new(paths, all) click to toggle source
# File lib/guard/reek/runner.rb, line 19
def initialize(paths, all)
  @all = all
  @paths = paths
  @paths = [] if @paths.include?('.reek')
end

Public Instance Methods

to_ary() click to toggle source
# File lib/guard/reek/runner.rb, line 29
def to_ary
  if @paths.empty?
    Array(@all)
  else
    @paths
  end
end
to_s() click to toggle source
# File lib/guard/reek/runner.rb, line 25
def to_s
  @paths.empty? ? 'all' : @paths.to_s
end