Class: StandupMD::Config::Entry
- Inherits:
-
Object
- Object
- StandupMD::Config::Entry
- Defined in:
- lib/standup_md/config/entry.rb
Overview
The configuration class for StandupMD::Entry
Constant Summary collapse
- DEFAULTS =
The default options.
{ current: ["<!-- ADD TODAY'S WORK HERE -->"], previous: [], impediments: ["None"], notes: [] }.freeze
Instance Attribute Summary collapse
-
#current ⇒ Array
Tasks for “Current” section.
-
#impediments ⇒ Array
Impediments for this entry.
-
#notes ⇒ Array
Notes for this entry.
-
#previous ⇒ Array
Tasks for “Previous” section.
Instance Method Summary collapse
-
#initialize ⇒ Entry
constructor
Initializes the config with default values.
-
#reset ⇒ Hash
Sets all config values back to their defaults.
Constructor Details
#initialize ⇒ Entry
Initializes the config with default values.
53 54 55 |
# File 'lib/standup_md/config/entry.rb', line 53 def initialize reset end |
Instance Attribute Details
#current ⇒ Array
Tasks for “Current” section.
25 26 27 |
# File 'lib/standup_md/config/entry.rb', line 25 def current @current end |
#impediments ⇒ Array
Impediments for this entry.
41 42 43 |
# File 'lib/standup_md/config/entry.rb', line 41 def impediments @impediments end |
#notes ⇒ Array
Notes for this entry.
49 50 51 |
# File 'lib/standup_md/config/entry.rb', line 49 def notes @notes end |
#previous ⇒ Array
Tasks for “Previous” section.
33 34 35 |
# File 'lib/standup_md/config/entry.rb', line 33 def previous @previous end |
Instance Method Details
#reset ⇒ Hash
Sets all config values back to their defaults.
61 62 63 |
# File 'lib/standup_md/config/entry.rb', line 61 def reset DEFAULTS.each { |k, v| instance_variable_set("@#{k}", v) } end |