Class: Lutaml::Xsd::Commands::NamespaceCommand::ShowCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::NamespaceCommand::ShowCommand
- Defined in:
- lib/lutaml/xsd/commands/namespace_command.rb
Overview
Show command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(namespace_uri, package_file, options) ⇒ ShowCommand
constructor
A new instance of ShowCommand.
- #run ⇒ Object
Constructor Details
#initialize(namespace_uri, package_file, options) ⇒ ShowCommand
Returns a new instance of ShowCommand.
251 252 253 254 255 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 251 def initialize(namespace_uri, package_file, ) super() @namespace_uri = namespace_uri @package_file = package_file end |
Instance Method Details
#run ⇒ Object
257 258 259 260 261 262 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 257 def run repository = load_repository(@package_file) repository = ensure_resolved(repository) show_namespace(repository) end |