Module: Peridot::Ignores
- Defined in:
- lib/peridot/ignores.rb
Instance Method Summary collapse
Instance Method Details
#ignored?(file) ⇒ Boolean
11 12 13 |
# File 'lib/peridot/ignores.rb', line 11 def ignored?(file) ignored_files.any? { |ignore_expr| file.match ignore_expr } end |
#ignored_files ⇒ Object
3 4 5 |
# File 'lib/peridot/ignores.rb', line 3 def ignored_files @ignored_files ||= %w(Rakefile README.*$ \.erb$) end |
#ignored_files=(files) ⇒ Object
7 8 9 |
# File 'lib/peridot/ignores.rb', line 7 def ignored_files=(files) @ignored_files = files end |