Class: ListTool::App::UnknownCommand
- Inherits:
-
Command
- Object
- Command
- ListTool::App::UnknownCommand
show all
- Defined in:
- lib/list_tool/app/commands/unknown_command.rb
Class Method Summary
collapse
Methods inherited from Command
ensure_existence_of, fail_if_not_an_array, parse_item_number, parse_item_number!, parse_list_number, parse_list_number!, parse_number
Class Method Details
.execute(options, lister) ⇒ Object
16
17
18
|
# File 'lib/list_tool/app/commands/unknown_command.rb', line 16
def execute options, lister
raise UnknownCommandError, "unknown command: '#{@unknown_command}'"
end
|
.help ⇒ Object
20
21
22
|
# File 'lib/list_tool/app/commands/unknown_command.rb', line 20
def help
""
end
|
.match?(arg) ⇒ Boolean
7
8
9
10
|
# File 'lib/list_tool/app/commands/unknown_command.rb', line 7
def match? arg
@unknown_command = arg
true
end
|
.parse(argv) ⇒ Object
12
13
14
|
# File 'lib/list_tool/app/commands/unknown_command.rb', line 12
def parse argv
{}
end
|