Module: Frameit::Platform
- Defined in:
- frameit/lib/frameit/device_types.rb
Class Method Summary collapse
Class Method Details
.all_platforms ⇒ Object
70 71 72 |
# File 'frameit/lib/frameit/device_types.rb', line 70 def self.all_platforms Platform.constants.map { |c| Platform.const_get(c) } end |
.symbol_to_constant(symbol) ⇒ Object
74 75 76 77 78 79 80 |
# File 'frameit/lib/frameit/device_types.rb', line 74 def self.symbol_to_constant(symbol) if symbol == :android ANDROID else IOS end end |