Module: Frameit::Platform

Defined in:
frameit/lib/frameit/device_types.rb

Class Method Summary collapse

Class Method Details

.all_platformsObject



66
67
68
# File 'frameit/lib/frameit/device_types.rb', line 66

def self.all_platforms
  Platform.constants.map { |c| Platform.const_get(c) }
end

.symbol_to_constant(symbol) ⇒ Object



70
71
72
73
74
75
76
# File 'frameit/lib/frameit/device_types.rb', line 70

def self.symbol_to_constant(symbol)
  if symbol == :android
    ANDROID
  else
    IOS
  end
end