class

PomodoroCr::Configuration

Inherits Reference < Object

Constructors

new(work_duration : Time::Span, short_break_duration : Time::Span, long_break_duration : Time::Span, long_break_frequency : UInt8, messages : MotivationalMsgs, config_path : Path)
Source

Instance methods

concat_messages(m1 : MotivationalMsgs, m2 : MotivationalMsgs | Nil)
Source
config_path
Source
load_yaml_config(config_path : Path)
Source
long_break_duration
Source
long_break_duration=(long_break_duration : Time::Span)
Source
long_break_frequency
Source
long_break_frequency=(long_break_frequency : UInt8)
Source
messages
Source
messages=(messages : MotivationalMsgs)
Source
parse_cli_args
Source
short_break_duration
Source
short_break_duration=(short_break_duration : Time::Span)
Source
to_s(io)
Source
to_yaml
Source
valid?

Ensure that work, short_break, long_break duration and long_break_frequency are all set

Source
work_duration
Source
work_duration=(work_duration : Time::Span)
Source