Sha256: f1889b08763f9b0f643ca220e87736024807382f55aaaf1c468a9170cc898cfb

Contents?: true

Size: 283 Bytes

Versions: 10

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Electron < Base
    def id
      :electron
    end

    def name
      "Electron"
    end

    def full_version
      ua[%r{Electron/([\d.]+)}, 1] ||
        "0.0"
    end

    def match?
      ua =~ /Electron/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/electron.rb
browser-5.0.0 lib/browser/electron.rb
browser-4.2.0 lib/browser/electron.rb
browser-4.1.0 lib/browser/electron.rb
browser-4.0.0 lib/browser/electron.rb
browser-3.0.3 lib/browser/electron.rb
browser-3.0.2 lib/browser/electron.rb
browser-3.0.1 lib/browser/electron.rb
browser-3.0.0 lib/browser/electron.rb
browser-2.7.1 lib/browser/electron.rb