Class: AocCli::Commands::Refresh

Inherits:
Object
  • Object
show all
Defined in:
lib/aoc_cli/commands.rb

Instance Method Summary collapse

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

#execObject



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