Parent

Files

Guard::RSpec::Inspector

Public Class Methods

new(options = {}) click to toggle source
# File lib/guard/rspec/inspector.rb, line 5
def initialize(options = {})
  self.excluded   = options[:exclude]
  self.spec_paths = options[:spec_paths]
end

Public Instance Methods

clean(paths) click to toggle source
# File lib/guard/rspec/inspector.rb, line 26
def clean(paths)
  paths.uniq!
  paths.compact!
  clear_spec_files_list_after do
    paths = paths.select { |path| should_run_spec_file?(path) }
  end
  paths.reject { |p| included_in_other_path?(p, paths) }
end
excluded() click to toggle source
# File lib/guard/rspec/inspector.rb, line 10
def excluded
  @excluded || []
end
excluded=(pattern) click to toggle source
# File lib/guard/rspec/inspector.rb, line 14
def excluded=(pattern)
  @excluded = Dir[pattern.to_s]
end
spec_paths() click to toggle source
# File lib/guard/rspec/inspector.rb, line 18
def spec_paths
  @spec_paths || []
end
spec_paths=(paths) click to toggle source
# File lib/guard/rspec/inspector.rb, line 22
def spec_paths=(paths)
  @spec_paths = Array(paths)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.