Class: Lutaml::Xsd::Commands::TypeCommand::HierarchyCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::TypeCommand::HierarchyCommand
- Defined in:
- lib/lutaml/xsd/commands/type_command.rb
Overview
Hierarchy command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(qname, package_path, options) ⇒ HierarchyCommand
constructor
A new instance of HierarchyCommand.
- #run ⇒ Object
Constructor Details
#initialize(qname, package_path, options) ⇒ HierarchyCommand
Returns a new instance of HierarchyCommand.
1197 1198 1199 1200 1201 |
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1197 def initialize(qname, package_path, ) super() @qname = qname @package_path = package_path end |
Instance Method Details
#run ⇒ Object
1203 1204 1205 1206 1207 1208 |
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1203 def run repository = load_repository(@package_path) repository = ensure_resolved(repository) display_hierarchy(repository) end |