Class: Lutaml::Xsd::Commands::ElementCommand::ShowCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::ElementCommand::ShowCommand
- Defined in:
- lib/lutaml/xsd/commands/element_command.rb
Overview
Show command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(element_name, package_file, options) ⇒ ShowCommand
constructor
A new instance of ShowCommand.
- #run ⇒ Object
Constructor Details
#initialize(element_name, package_file, options) ⇒ ShowCommand
Returns a new instance of ShowCommand.
265 266 267 268 269 |
# File 'lib/lutaml/xsd/commands/element_command.rb', line 265 def initialize(element_name, package_file, ) super() @element_name = element_name @package_file = package_file end |
Instance Method Details
#run ⇒ Object
271 272 273 274 275 276 |
# File 'lib/lutaml/xsd/commands/element_command.rb', line 271 def run repository = load_repository(@package_file) repository = ensure_resolved(repository) show_element(repository) end |