Sha256: 70afe181fe8be9561be8bee6011392172ab3a79af479ec7c024be463f01fcb5a

Contents?: true

Size: 298 Bytes

Versions: 7

Compression:

Stored size: 298 Bytes

Contents

module Aua::Agents::Msie
  
  def self.extend?(agent)
    agent.app_comments_string =~ PATTERN
  end
  
  PATTERN = /MSIE ([\d.]+)/
  
  def type
    :Browser
  end
  
  def name
    :MSIE
  end
  
  def version
    @version ||= begin
      app_comments_string =~ PATTERN
      $1
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aua-0.2.2 lib/aua/agents/msie.rb
aua-0.2.1 lib/aua/agents/msie.rb
aua-0.2.0 lib/aua/agents/msie.rb
aua-0.1.3 lib/aua/agents/msie.rb
aua-0.1.2 lib/aua/agents/msie.rb
aua-0.1.1 lib/aua/agents/msie.rb
aua-0.1.0 lib/aua/agents/msie.rb