Parent

Files

Guard::RSpec::Inspector

Attributes

excluded[RW]
spec_paths[RW]

Public Class Methods

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

Public Instance Methods

clean(paths) click to toggle source
# File lib/guard/rspec/inspector.rb, line 20
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=(pattern) click to toggle source
# File lib/guard/rspec/inspector.rb, line 12
def excluded=(pattern)
  @excluded = Dir[pattern.to_s]
end
spec_paths=(paths) click to toggle source
# File lib/guard/rspec/inspector.rb, line 16
def spec_paths=(paths)
  @spec_paths = Array(paths)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.