Class: AocCli::Processors::PuzzleRefresher

Inherits:
Core::Processor show all
Extended by:
Forwardable
Defined in:
lib/aoc_cli/processors/puzzle_refresher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core::Processor

#run!, run!

Instance Attribute Details

#puzzleObject

Returns the value of attribute puzzle.



4
5
6
# File 'lib/aoc_cli/processors/puzzle_refresher.rb', line 4

def puzzle
  @puzzle
end

Instance Method Details

#runObject



8
9
10
# File 'lib/aoc_cli/processors/puzzle_refresher.rb', line 8

def run
  puzzle.update(content:, input:) || puzzle
end