summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/lib
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-06 16:06:19 +0100
committera14m <[email protected]>2020-12-06 16:06:19 +0100
commit90eb66f7e34cf6f5a0468e21d3542b20cc668e78 (patch)
tree65606e6e4e5b7b09ff0bd6f69a3c21a943e08130 /CLI/ruby/lib
parentc5e225809aecedcd2f6260fd00e29179bf00c31d (diff)
Add the GameOfLife::Error base class
Diffstat (limited to 'CLI/ruby/lib')
-rw-r--r--CLI/ruby/lib/game_of_life.rb3
1 files changed, 3 insertions, 0 deletions
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