module Browser::Platform

def blackberry4?

Detect if is BlackBerry 4.
def blackberry4?
  blackberry? && !!(ua =~ %r[BlackBerry\d+/4])
end