Sha256: 45ebe53a2344838a261f95f68388182fee19f708b9bafb40788f894d0024cd91

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true
module Browser
  class Platform
    class Mac < Base
      def version
        ua[/Mac OS X\s*([0-9_\.]+)?/, 1].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.1.0 lib/browser/platform/mac.rb