diff options
| author | a14m <[email protected]> | 2020-11-29 23:51:31 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-11-29 23:51:31 +0100 |
| commit | 5146daed5b8921942e2d1b881b213b7ff18dcdde (patch) | |
| tree | d192ffaaf85adaf38d15ce76135950193fedfb8a /CLI/ruby/lib | |
| parent | 909ea4c210000ad0a92e82a050a26ae260aadbc7 (diff) | |
Use the more common delegate method (ruby std not rails)
Diffstat (limited to 'CLI/ruby/lib')
| -rw-r--r-- | CLI/ruby/lib/game_of_life/universe.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
