no implicit conversion of nil into String (TypeError)
xeron opened this issue · comments
Getting this error:
2.3.0 :001 > "String".match(/String/)
/Users/ilarionov/.rvm/gems/ruby-2.3.0/gems/brice-0.4.1/lib/brice/colours.rb:350:in `tokenize': no implicit conversion of nil into String (TypeError)
=> #<MatchData "String">
Well, yes, I'm aware of it ;) Until now, I haven't bothered to fix it because I was working on a completely new implementation based on Ripper. But I got stuck on a series of edge cases since, after all, inspect output is (generally) not Ruby code. So now I'm not so sure what the path forward should be... But thanks for reporting this error. I'll try and come up with something soon.