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

Version Path
rhodes-7.5.1 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-7.4.1 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-7.1.17 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-6.2.0 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-6.0.11 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.18 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.17 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.15 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.0.22 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.2 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.0.7 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.0.3 lib/commonAPI/coreapi/RhoSystemApi.rb
rhodes-5.5.0 lib/commonAPI/coreapi/RhoSystemApi.rb
tauplatform-1.0.3 lib/commonAPI/coreapi/RhoSystemApi.rb
tauplatform-1.0.2 lib/commonAPI/coreapi/RhoSystemApi.rb
tauplatform-1.0.1 lib/commonAPI/coreapi/RhoSystemApi.rb