Class: Focus::StartFocusTime
- Defined in:
- lib/focus/actions/start_focus_time.rb
Constant Summary collapse
- DEFAULT_CONTEXT_KEYS =
%i(minutes target quiet daemonize).freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
8 9 10 |
# File 'lib/focus/actions/start_focus_time.rb', line 8 def action @action end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/focus/actions/start_focus_time.rb', line 10 def call context.actions = ConfigLoader.load("actions") focus take_break cleanup end |