Class: Lutaml::Xsd::Commands::NamespaceCommand::TreeCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::NamespaceCommand::TreeCommand
- Defined in:
- lib/lutaml/xsd/commands/namespace_command.rb
Overview
Tree command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(package_file, options) ⇒ TreeCommand
constructor
A new instance of TreeCommand.
- #run ⇒ Object
Constructor Details
#initialize(package_file, options) ⇒ TreeCommand
Returns a new instance of TreeCommand.
375 376 377 378 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 375 def initialize(package_file, ) super() @package_file = package_file end |
Instance Method Details
#run ⇒ Object
380 381 382 383 384 385 |
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 380 def run repository = load_repository(@package_file) repository = ensure_resolved(repository) display_namespace_tree(repository) end |