From 90eb66f7e34cf6f5a0468e21d3542b20cc668e78 Mon Sep 17 00:00:00 2001 From: a14m Date: Sun, 6 Dec 2020 16:06:19 +0100 Subject: Add the GameOfLife::Error base class --- CLI/ruby/lib/game_of_life.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CLI/ruby') diff --git a/CLI/ruby/lib/game_of_life.rb b/CLI/ruby/lib/game_of_life.rb index f8eba24..d61834a 100644 --- a/CLI/ruby/lib/game_of_life.rb +++ b/CLI/ruby/lib/game_of_life.rb @@ -7,6 +7,9 @@ require "game_of_life/cell" # Game of Life module entry point module GameOfLife + # Base Error class + class Error < StandardError; end + class << self # Generate a universe based on the options (from an input file/URI) or using a random/passed seed # This method also sets the Classes/Modules constants for the run defining the options for -- cgit v1.2.3