Class: Toodledo::CommandLine::BaseCommand
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- Toodledo::CommandLine::BaseCommand
- Defined in:
- lib/toodledo/command_line/base_command.rb
Direct Known Subclasses
AddContextCommand, AddFolderCommand, AddGoalCommand, AddTaskCommand, CompleteCommand, DeleteContextCommand, DeleteFolderCommand, DeleteGoalCommand, DeleteTaskCommand, EditCommand, HotlistCommand, InteractiveCommand, ListContextsCommand, ListFoldersCommand, ListGoalsCommand, ListOverdueCommand, ListTasksByContextCommand, ListTasksCommand, ListTodayCommand, ListTomorrowCommand, SetupCommand, StdinCommand
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(client, name, subtasks = false) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
Constructor Details
#initialize(client, name, subtasks = false) ⇒ BaseCommand
Returns a new instance of BaseCommand.
6 7 8 9 10 |
# File 'lib/toodledo/command_line/base_command.rb', line 6 def initialize(client, name, subtasks = false) super(name, subtasks) raise "Nil client!" if (client == nil) @client = client end |
Instance Method Details
#client ⇒ Object
12 13 14 |
# File 'lib/toodledo/command_line/base_command.rb', line 12 def client return @client end |