Sha256: ea2e06512b0653b2c440b9d9b5cf8dd86e09ad6d1243e7864ed924b0bdad9824
Contents?: true
Size: 939 Bytes
Versions: 16
Compression:
Stored size: 939 Bytes
Contents
class System class << self alias_method :orig_get_property, :get_property end def self.get_property(prop_name) return screenWidth if prop_name == 'screen_width' return screenHeight if prop_name == 'screen_height' return realScreenWidth if prop_name == 'real_screen_width' return realScreenHeight if prop_name == 'real_screen_height' return ppiX if prop_name == 'ppi_x' return ppiY if prop_name == 'ppi_y' return localServerPort if prop_name == 'rhodes_port' return freeServerPort if prop_name == 'free_server_port' return devicePushId if prop_name == 'device_id' return '' if prop_name == 'phone_number' return '' if prop_name == 'full_browser' return '' if prop_name == '' res = orig_get_property(prop_name) return true if res == 'true' return false if res == 'false' res end end
Version data entries
16 entries across 16 versions & 2 rubygems