module Wurfl::Utils
A simple module to hold commonly used methods for the WURFL. This is currently just loading and saving a WURFL PStore database.
Public Instance Methods
load_wurfl_pstore(pstorefile)
click to toggle source
Does not catch exception, but throws to the caller.
# File lib/wurfl/utils.rb, line 12 def load_wurfl_pstore(pstorefile) PStore.new(pstorefile).transaction {|ps| ps["handsets"]} end
save_wurfl_pstore(pstorefile,handsets)
click to toggle source
Also throws exceptions to the caller.
# File lib/wurfl/utils.rb, line 17 def save_wurfl_pstore(pstorefile,handsets) PStore.new(pstorefile).transaction {|ps| ps["handsets"] = handsets} end