fnando/browser

View on GitHub
lib/browser/maxthon.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Browser
  class Maxthon < Base
    def id
      :maxthon
    end

    def name
      "Maxthon"
    end

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

    def match?
      ua =~ /Maxthon/i
    end
  end
end