Class: Ruby::Pomodoro::Cmd::Base
- Inherits:
-
Object
- Object
- Ruby::Pomodoro::Cmd::Base
- Includes:
- TimeHelpers
- Defined in:
- lib/ruby/pomodoro/cmd/base.rb
Direct Known Subclasses
ChooseTask, EditList, ErrorHandler, Main, Pause, Quit, Stop
Instance Method Summary collapse
- #call ⇒ Symbol, NilClass abstract
-
#initialize(printer: Ruby::Pomodoro::Printer.new, prompt: TTY::Prompt.new, worker: Ruby::Pomodoro::Worker.instance) ⇒ Base
constructor
A new instance of Base.
Methods included from TimeHelpers
Constructor Details
#initialize(printer: Ruby::Pomodoro::Printer.new, prompt: TTY::Prompt.new, worker: Ruby::Pomodoro::Worker.instance) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/ruby/pomodoro/cmd/base.rb', line 10 def initialize(printer: Ruby::Pomodoro::Printer.new, prompt: TTY::Prompt.new, worker: Ruby::Pomodoro::Worker.instance) @printer = printer @prompt = prompt @worker = worker end |
Instance Method Details
#call ⇒ Symbol, NilClass
This method is abstract.
18 |
# File 'lib/ruby/pomodoro/cmd/base.rb', line 18 def call; end |