From 5146daed5b8921942e2d1b881b213b7ff18dcdde Mon Sep 17 00:00:00 2001 From: a14m Date: Sun, 29 Nov 2020 23:51:31 +0100 Subject: Use the more common delegate method (ruby std not rails) --- CLI/ruby/lib/game_of_life/universe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CLI/ruby/lib') diff --git a/CLI/ruby/lib/game_of_life/universe.rb b/CLI/ruby/lib/game_of_life/universe.rb index a8c9050..b92386c 100644 --- a/CLI/ruby/lib/game_of_life/universe.rb +++ b/CLI/ruby/lib/game_of_life/universe.rb @@ -5,9 +5,9 @@ require "forwardable" module GameOfLife class Universe extend Forwardable + delegate :[] => :@universe attr_accessor :universe - def_delegators :@universe, :[] # Initialize the empty initial universe 2D array # @param width [Integer] the width of the universe array -- cgit v1.2.3