Sorting a struct based on a reference array in ruby

后端 未结 0 1645
无人及你
无人及你 2021-01-25 04:36

I have a struct definition as

Player = Struct.new(:name, :level)

And a sample array

levels = [ \'level-1\',\'level-2\',\'beta\',\'         


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