Method: Train::Platforms.export

Defined in:
lib/train/platforms.rb

.exportObject



91
92
93
94
95
96
97
98
99
100
101
# File 'lib/train/platforms.rb', line 91

def self.export
  export = []
  list.each do |name, platform|
    platform.find_family_hierarchy
    export << {
      name: name,
      families: platform.family_hierarchy,
    }
  end
  export.sort_by { |platform| platform[:name] }
end