Class: Lutaml::Xsd::Commands::TypeCommand::FindCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::TypeCommand::FindCommand
- Defined in:
- lib/lutaml/xsd/commands/type_command.rb
Overview
Find command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(qname, package_file, options) ⇒ FindCommand
constructor
A new instance of FindCommand.
- #run ⇒ Object
Constructor Details
#initialize(qname, package_file, options) ⇒ FindCommand
Returns a new instance of FindCommand.
191 192 193 194 195 |
# File 'lib/lutaml/xsd/commands/type_command.rb', line 191 def initialize(qname, package_file, ) super() @qname = qname @package_file = package_file end |
Instance Method Details
#run ⇒ Object
197 198 199 200 201 202 |
# File 'lib/lutaml/xsd/commands/type_command.rb', line 197 def run @repository = load_repository(@package_file) @repository = ensure_resolved(@repository) find_and_display_type(@repository) end |