Device = Struct.new(:platform, :os, :version) devices = [ Device.new(:pc, :windows, 7), Device.new(:pc, :windows, 10), Device.new(:pc, :macos, :el_capitan), Device.new(:pc, :macos, :sierra), Device.new(:pc, :ubuntu, 16.10), Device.new(:smartphone, :ios, 8), Device.new(:smartphone, :ios, 9), Device.new(:smartphone, :android, 6.0), Device.new(:smartphone, :android, 7.0), Device.new(:smartphone, :and
![木構造と再帰の話 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbc1f0f7d57c0fbd7dc87d81bc07542c36a83eff/height=288;version=1;width=512/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fqiita-fb-2887e7b4aad86fd8c25cea84846f2236.png)