Class: Shortlook::Command
- Inherits:
-
Object
- Object
- Shortlook::Command
- Extended by:
- Forwardable
- Defined in:
- lib/shortlook/command.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#execute ⇒ Object
Execute this command.
-
#prompt(**options) ⇒ Object
The interactive prompt.
Instance Method Details
#execute ⇒ Object
Execute this command
14 15 16 17 18 19 |
# File 'lib/shortlook/command.rb', line 14 def execute(*) raise( NotImplementedError, "#{self.class}##{__method__} must be implemented" ) end |
#prompt(**options) ⇒ Object
The interactive prompt
26 27 28 29 |
# File 'lib/shortlook/command.rb', line 26 def prompt(**) require 'tty-prompt' TTY::Prompt.new() end |