Class: CodebrackerSimb::Code

Inherits:
Array
  • Object
show all
Defined in:
lib/codebracker_simb/code.rb

Overview

return array from users input

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Code

Returns a new instance of Code.



6
7
8
9
# File 'lib/codebracker_simb/code.rb', line 6

def initialize(str)
  arr = str.split('').map(&:to_i)
  super(arr)
end