Module: Frameit::Platform

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

Constant Summary collapse

ANDROID =
"ANDROID"
IOS =
"IOS"
ANY =
"ANY"

Class Method Summary collapse

Class Method Details

.all_platformsObject



64
65
66
# File 'frameit/lib/frameit/device_types.rb', line 64

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

.symbol_to_constant(symbol) ⇒ Object



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

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