Class: Ea::Cli::Command::Base
- Inherits:
-
Object
- Object
- Ea::Cli::Command::Base
- Defined in:
- lib/ea/cli/command/base.rb
Overview
Shared base for all CLI commands.
Provides:
- Options Hash access (read-only)
- Output formatter resolution from
:formatoption - Standalone QEA database loading (no lutaml-uml required)
- UML document parsing (lazy-loads lutaml-uml)
- File existence validation
Subclasses implement #call and may use the protected helpers.
Instance Method Summary collapse
-
#call ⇒ Object
Template method — subclasses implement.
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
17 18 19 |
# File 'lib/ea/cli/command/base.rb', line 17 def initialize( = {}) @options = end |
Instance Method Details
#call ⇒ Object
Template method — subclasses implement.
23 24 25 |
# File 'lib/ea/cli/command/base.rb', line 23 def call raise NotImplementedError, "#{self.class}#call not implemented" end |