Class: SvgConform::Commands::SvgcheckCompatibility
- Inherits:
-
Object
- Object
- SvgConform::Commands::SvgcheckCompatibility
- Defined in:
- lib/svg_conform/commands/svgcheck_compatibility.rb
Overview
Command for comparing SvgConform with svgcheck compatibility
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ SvgcheckCompatibility
constructor
A new instance of SvgcheckCompatibility.
Constructor Details
#initialize(options = {}) ⇒ SvgcheckCompatibility
Returns a new instance of SvgcheckCompatibility.
9 10 11 |
# File 'lib/svg_conform/commands/svgcheck_compatibility.rb', line 9 def initialize( = {}) = end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/svg_conform/commands/svgcheck_compatibility.rb', line 13 def execute analyzer = SvgConform::Compatibility::CompatibilityAnalyzer.new( mode: [:mode] || ["mode"] || "check", profile: [:profile] || ["profile"] || "svg_1_2_rfc_compatible", semantic: [:semantic] || ["semantic"] || false, svgcheck_dir: [:svgcheck_dir] || ["svgcheck_dir"] || "spec/fixtures/svgcheck", file: [:file] || ["file"], output: [:output] || ["output"], ) analyzer.run_analysis end |