Class: AocCli::Commands::Refresh
- Inherits:
-
Object
- Object
- AocCli::Commands::Refresh
- Defined in:
- lib/aoc_cli/commands.rb
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(args) ⇒ Refresh
constructor
A new instance of Refresh.
Constructor Details
#initialize(args) ⇒ Refresh
Returns a new instance of Refresh.
137 138 |
# File 'lib/aoc_cli/commands.rb', line 137 def initialize(args) end |
Instance Method Details
#exec ⇒ Object
139 140 141 142 143 144 |
# File 'lib/aoc_cli/commands.rb', line 139 def exec case Metafile.type when :DAY then Day.refresh when :ROOT then Year.refresh end self end |