Sha256: 8cf387ace255b6ba980072ad371ad335e288ca97570f40d215e13ace4da54b95
Contents?: true
Size: 993 Bytes
Versions: 6
Compression:
Stored size: 993 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 version application.version end def version=(v) application.version = v 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
6 entries across 6 versions & 2 rubygems