Class: Lutaml::Xsd::Commands::ElementCommand::ListCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::ElementCommand::ListCommand
- Defined in:
- lib/lutaml/xsd/commands/element_command.rb
Overview
List command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(package_file, options) ⇒ ListCommand
constructor
A new instance of ListCommand.
- #run ⇒ Object
Constructor Details
#initialize(package_file, options) ⇒ ListCommand
Returns a new instance of ListCommand.
142 143 144 145 |
# File 'lib/lutaml/xsd/commands/element_command.rb', line 142 def initialize(package_file, ) super() @package_file = package_file end |
Instance Method Details
#run ⇒ Object
147 148 149 150 151 152 |
# File 'lib/lutaml/xsd/commands/element_command.rb', line 147 def run repository = load_repository(@package_file) repository = ensure_resolved(repository) list_elements(repository) end |