Getting this 'Undefined method 'fetch''

后端 未结 0 1521
清酒与你
清酒与你 2020-11-22 14:50

I am learning ruby and getting this error

My code:

class New_class
hash{}
File.readlines(\'file.txt\').each do |line|
  if (line =~ /^(\\w+)=>(.*)/)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题