Class: ListTool::App::VersionCommand
- Inherits:
-
Object
- Object
- ListTool::App::VersionCommand
- Defined in:
- lib/list_tool/app/commands/version_command.rb
Class Method Summary collapse
Class Method Details
.execute(options, lister) ⇒ Object
14 15 16 |
# File 'lib/list_tool/app/commands/version_command.rb', line 14 def self.execute , lister Printer.print_version end |
.help ⇒ Object
18 19 20 |
# File 'lib/list_tool/app/commands/version_command.rb', line 18 def self.help " -v, --version\t\t\tPrint version" end |
.match?(arg) ⇒ Boolean
6 7 8 |
# File 'lib/list_tool/app/commands/version_command.rb', line 6 def self.match? arg ['v', '-v', 'version', '--version'].include? arg end |
.parse(argv) ⇒ Object
10 11 12 |
# File 'lib/list_tool/app/commands/version_command.rb', line 10 def self.parse argv {} end |