Sha256: 9c763db8763fc9a1b27fe29d3b3e03716517f9f952cd8470d3f71c24c412eced
Contents?: true
Size: 859 Bytes
Versions: 21
Compression:
Stored size: 859 Bytes
Contents
class UserAgent module Browsers module Opera def self.extend?(agent) agent.application && agent.application.product == "Opera" end def platform if application.comment[0] =~ /Windows/ "Windows" else application.comment[0] end end def security if platform == "Macintosh" Security[application.comment[2]] else Security[application.comment[1]] end end def os if application.comment[0] =~ /Windows/ OperatingSystems.normalize_os(application.comment[0]) else application.comment[1] end end def localization if platform == "Macintosh" application.comment[3] else application.comment[2] end end end end end
Version data entries
21 entries across 21 versions & 3 rubygems