Class: Resumer::Command::Usage
- Inherits:
-
Commander::Command
- Object
- Commander::Command
- Resumer::Command::Usage
- Defined in:
- lib/resumer/commands/usage.rb
Overview
Display usage info
Instance Method Summary collapse
-
#initialize ⇒ Usage
constructor
A new instance of Usage.
- #run(*_args) ⇒ Object
Constructor Details
#initialize ⇒ Usage
Returns a new instance of Usage.
9 10 11 12 13 |
# File 'lib/resumer/commands/usage.rb', line 9 def initialize super(:usage) @summary = 'Display usage info' @syntax = "#{Resumer::BIN} <command> [options] <args>" end |
Instance Method Details
#run(*_args) ⇒ Object
15 16 17 |
# File 'lib/resumer/commands/usage.rb', line 15 def run(*_args) say("usage: #{@syntax}") end |