Sha256: 87e96a757cb042cd4b1e51ab52c551a1dfd0c1581df2ed161c4a0cdd26bc7362
Contents?: true
Size: 502 Bytes
Versions: 17
Compression:
Stored size: 502 Bytes
Contents
module BrowserHelper def placeholder(label=nil) "placeholder='#{label}'" if platform == 'apple' end def platform System::get_property('platform').downcase end def selected(option_value,object_value) "selected=\"yes\"" if option_value == object_value end def checked(option_value,object_value) "checked=\"yes\"" if option_value == object_value end def is_bb6 platform == 'blackberry' && (Rho::System.getProperty('os_version').split('.')[0].to_i >= 6) end end
Version data entries
17 entries across 17 versions & 2 rubygems