Ruby 2.7 count array of hash key

后端 未结 0 1623
暗喜
暗喜 2020-12-01 07:31

I\'ve prepared a method which parses a log file and returns a hash as a result:

  def parse
    @hash = Hash.new { |hash, key| hash[key] = [] }
    File.open(         


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