rubymotion/BubbleWrap

View on GitHub
motion/core/device.rb

Summary

Maintainability
A
0 mins
Test Coverage
module BubbleWrap
  module Device
    module_function

    # Shameless shorthand for accessing BubbleWrap::Screen
    def screen
      BubbleWrap::Device::Screen
    end

    # Delegates to BubbleWrap::Screen.retina?
    def retina?
      screen.retina?
    end
  end
end
::Device = BubbleWrap::Device unless defined?(::Device)