Sha256: 852b45f43d9c1696e6d655cc9cd26d37791468c3265e84b2c94f808517092036
Contents?: true
Size: 529 Bytes
Versions: 5
Compression:
Stored size: 529 Bytes
Contents
require "pstore" module Wurfl; end =begin A simple module to hold commonly used methods for the WURFL. This is currently just loading and saving a WURFL PStore database. =end module Wurfl::Utils # Does not catch exception, but throws to the caller. def load_wurfl_pstore(pstorefile) PStore.new(pstorefile).transaction {|ps| ps["handsets"]} end #Also throws exceptions to the caller. def save_wurfl_pstore(pstorefile,handsets) PStore.new(pstorefile).transaction {|ps| ps["handsets"] = handsets} end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
wurfl-1.3.7 | lib/wurfl/utils.rb |
wurfl-1.3.6 | lib/wurfl/utils.rb |
wurfl-1.3.5 | lib/wurfl/utils.rb |
wurfl-1.3.0 | lib/wurfl/utils.rb |
wurfl-1.3.1 | lib/wurfl/utils.rb |