Sha256: 1e8b318793ff7e2b820bc78ac180ec703a44118cad5da3329209b2f79ab8d307

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true
module Browser
  class Platform
    class Mac < Base
      def version
        (ua[/Mac OS X\s*([0-9_\.]+)?/, 1] || "0").gsub("_", ".")
      end

      def name
        "Macintosh"
      end

      def id
        :mac
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser-2.2.0 lib/browser/platform/mac.rb