Sha256: a0d972295fec17ecd19f9d021678e4368725958aacea8e15c664ea75471f3645

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true
module Browser
  class Platform
    class BlackBerry < Base
      def match?
        ua =~ /BB10|BlackBerry/
      end

      def name
        "BlackBerry"
      end

      def id
        :blackberry
      end

      def version
        ua[%r[(?:Version|BlackBerry[\da-z]+)/([\d.]+)], 1]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/lib/browser/platform/blackberry.rb
browser-2.3.0 lib/browser/platform/blackberry.rb
browser-2.2.0 lib/browser/platform/blackberry.rb
browser-2.1.0 lib/browser/platform/blackberry.rb
browser-2.0.3 lib/browser/platform/blackberry.rb
browser-2.0.2 lib/browser/platform/blackberry.rb
browser-2.0.1 lib/browser/platform/blackberry.rb