SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

Daru::Vector#to_s doesn't work when name is Symbol #381

Closed lokeshh closed 6 years ago

lokeshh commented 7 years ago
[1] pry(main)> v = Daru::Vector.new [1, 2, 3], name: :abc
=> #<Daru::Vector(3)>
     abc
   0   1
   1   2
   2   3
[2] pry(main)> v.to_s
TypeError: no implicit conversion of Symbol into String
from /home/ubuntu/workspace/daru/lib/daru/vector.rb:941:in `+'