Class: Bibliothecary::Runner::MultiManifestFilter::FileAnalysis
- Inherits:
-
Object
- Object
- Bibliothecary::Runner::MultiManifestFilter::FileAnalysis
- Defined in:
- lib/bibliothecary/runner/multi_manifest_filter.rb
Overview
Wrap up a file analysis for easier validity testing
Instance Method Summary collapse
-
#initialize(file_analysis) ⇒ FileAnalysis
constructor
A new instance of FileAnalysis.
-
#skip? ⇒ Boolean
Determine if we should skip this file analysis when processing.
Constructor Details
#initialize(file_analysis) ⇒ FileAnalysis
Returns a new instance of FileAnalysis.
6 7 8 |
# File 'lib/bibliothecary/runner/multi_manifest_filter.rb', line 6 def initialize(file_analysis) @file_analysis = file_analysis end |
Instance Method Details
#skip? ⇒ Boolean
Determine if we should skip this file analysis when processing
12 13 14 15 16 |
# File 'lib/bibliothecary/runner/multi_manifest_filter.rb', line 12 def skip? !@file_analysis || !@file_analysis[:dependencies] || @file_analysis[:dependencies].empty? end |