Class: Lutaml::Xsd::Commands::PackageCommand::ExtractCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/lutaml/xsd/commands/package_command.rb

Overview

Extract command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, schema_name, options) ⇒ ExtractCommand

Returns a new instance of ExtractCommand.



1062
1063
1064
1065
1066
# File 'lib/lutaml/xsd/commands/package_command.rb', line 1062

def initialize(package_file, schema_name, options)
  super(options)
  @package_file = package_file
  @schema_name = schema_name
end

Instance Method Details

#runObject



1068
1069
1070
1071
# File 'lib/lutaml/xsd/commands/package_command.rb', line 1068

def run
  validate_file_exists
  extract_schema
end