Class: SvgConform::Compatibility::SvgAnalysisEngine
- Inherits:
-
Object
- Object
- SvgConform::Compatibility::SvgAnalysisEngine
- Defined in:
- lib/svg_conform/compatibility/svg_analysis_engine.rb
Overview
Handles SVG-specific analysis operations
Instance Method Summary collapse
- #analyze_file(filename, svgcheck_report) ⇒ Object
-
#initialize(context, file_processor) ⇒ SvgAnalysisEngine
constructor
A new instance of SvgAnalysisEngine.
Constructor Details
#initialize(context, file_processor) ⇒ SvgAnalysisEngine
Returns a new instance of SvgAnalysisEngine.
10 11 12 13 |
# File 'lib/svg_conform/compatibility/svg_analysis_engine.rb', line 10 def initialize(context, file_processor) @context = context @file_processor = file_processor end |
Instance Method Details
#analyze_file(filename, svgcheck_report) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/svg_conform/compatibility/svg_analysis_engine.rb', line 15 def analyze_file(filename, svgcheck_report) if @context.check_mode? analyze_validation(filename, svgcheck_report) else analyze_repair(filename, svgcheck_report) end end |