module Aua::Agents::Msie

Constants

PATTERN
TRIDENT_VERSION_MAP

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/agents/msie.rb, line 3
def self.extend?(agent)
  agent.app_comments_string =~ PATTERN
end

Public Instance Methods

name() click to toggle source
# File lib/aua/agents/msie.rb, line 19
def name
  :MSIE
end
type() click to toggle source
# File lib/aua/agents/msie.rb, line 15
def type
  :Browser
end
version() click to toggle source
# File lib/aua/agents/msie.rb, line 23
def version
  @version ||= if app_comments_string =~ PATTERN
    $1 == "Trident\/" ? TRIDENT_VERSION_MAP[$2] || $2 : $2
  end
end