Class: AocCli::Core::Processor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Kangaru::Attributable, Kangaru::Validatable
Defined in:
lib/aoc_cli/core/processor.rb

Defined Under Namespace

Classes: Error

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run!Object



27
28
29
# File 'lib/aoc_cli/core/processor.rb', line 27

def self.run!(...)
  new(...).run!
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/aoc_cli/core/processor.rb', line 17

def run
  raise NotImplementedError
end

#run!Object

Raises:



21
22
23
24
25
# File 'lib/aoc_cli/core/processor.rb', line 21

def run!
  raise(Error, self) unless valid?

  run
end