lib/tty/vector.rb in tty-0.1.1 vs lib/tty/vector.rb in tty-0.1.2
- old
+ new
@@ -25,11 +25,11 @@
#
# @return [undefined]
#
# @api public
def initialize(array = [])
- @array_converter = Conversion::ArrayConverter.new
- @elements = @array_converter.convert(array)
+ @converter = Necromancer.new
+ @elements = @converter.convert(array).to(:array, strict: true)
end
# Return element at index.
#
# @param [Integer] indx