Class: CodebrackerSimb::Code
- Inherits:
-
Array
- Object
- Array
- CodebrackerSimb::Code
- Defined in:
- lib/codebracker_simb/code.rb
Overview
return array from users input
Instance Method Summary collapse
-
#initialize(str) ⇒ Code
constructor
A new instance of Code.
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 |