Class: Noir::Base::TerminalCommand
- Defined in:
- lib/noir/base/terminal_command.rb
Direct Known Subclasses
Command::Calculate::Time, Command::Completion, Command::Edit::Note, Command::Format::LGTM, Command::Format::PDFURL, Command::Help, Command::Init::Zsh, Command::New::GitIgnore, Command::New::HgIgnore, Command::New::Makefile::Tex, Command::New::Note
Class Method Summary collapse
Methods inherited from Command
check_command_not_found, description
Class Method Details
.execute(*args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/noir/base/terminal_command.rb', line 6 def execute *args if self == Noir::Base::TerminalCommand raise 'called raw Noir::Base::TerminalCommand.execute. please call it in extended class.' end raise 'please override in extended class' end |
.sub_commands ⇒ Object
14 15 16 |
# File 'lib/noir/base/terminal_command.rb', line 14 def sub_commands return [] end |