Class: Lutaml::Xsd::Commands::NamespaceCommand::PrefixesCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::NamespaceCommand::PrefixesCommand
- Defined in:
- lib/lutaml/xsd/commands/namespace_command.rb
Overview
Prefixes command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(package_file, options) ⇒ PrefixesCommand
constructor
A new instance of PrefixesCommand.
- #run ⇒ Object
Constructor Details
#initialize(package_file, options) ⇒ PrefixesCommand
Returns a new instance of PrefixesCommand.
449 450 451 452 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 449 def initialize(package_file, ) super() @package_file = package_file end |
Instance Method Details
#run ⇒ Object
454 455 456 457 458 459 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 454 def run repository = load_repository(@package_file) repository = ensure_resolved(repository) display_prefixes(repository) end |