Module: Guard::Ronn::Inspector

Defined in:
lib/guard/ronn/inspector.rb

Class Method Summary collapse

Class Method Details

.clean(paths) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/guard/ronn/inspector.rb', line 5

def clean(paths)
  paths.uniq!
  paths.compact!
  clear_ronn_files_list_after do
    paths = paths.select { |path| ronn_file?(path) }
  end
  paths.reject { |p| included_in_other_path?(p, paths) }
end

.ronn_filesObject



14
15
16
# File 'lib/guard/ronn/inspector.rb', line 14

def ronn_files
  @ronn_files ||= Dir['man/*.{ronn,md,markdown}']
end