Sha256: bd25f52283518c0779397e8be7927effef53df0c1ec368241f33b63daf94f90c

Contents?: true

Size: 567 Bytes

Versions: 35

Compression:

Stored size: 567 Bytes

Contents

require 'user_agent/browsers/all'
require 'user_agent/browsers/gecko'
require 'user_agent/browsers/internet_explorer'
require 'user_agent/browsers/opera'
require 'user_agent/browsers/webkit'

class UserAgent
  module Browsers
    Security = {
      "N" => :none,
      "U" => :strong,
      "I" => :weak
    }.freeze

    def self.all
      [InternetExplorer, Webkit, Opera, Gecko]
    end

    def self.extend(array)
      array.extend(All)
      all.each do |extension|
        return array.extend(extension) if extension.extend?(array)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
useragent-0.7.0 lib/user_agent/browsers.rb
friendlyfashion-useragent-0.6.1.1 lib/user_agent/browsers.rb
friendlyfashion-useragent-0.6.1 lib/user_agent/browsers.rb
useragent-0.6.0 lib/user_agent/browsers.rb
useragent-0.5.0 lib/user_agent/browsers.rb
useragent-0.4.16 lib/user_agent/browsers.rb
useragent-0.4.15 lib/user_agent/browsers.rb
useragent-0.4.14 lib/user_agent/browsers.rb
useragent-0.4.13 lib/user_agent/browsers.rb
useragent-0.4.12 lib/user_agent/browsers.rb
useragent-0.4.11 lib/user_agent/browsers.rb
useragent-0.4.10 lib/user_agent/browsers.rb
useragent-0.4.9 lib/user_agent/browsers.rb
useragent-0.4.8 lib/user_agent/browsers.rb
useragent-0.4.7 lib/user_agent/browsers.rb
useragent-0.4.6 lib/user_agent/browsers.rb
useragent-0.4.5 lib/user_agent/browsers.rb
useragent-0.4.4 lib/user_agent/browsers.rb
useragent-fl-0.4.3 lib/user_agent/browsers.rb
useragent-0.4.3 lib/user_agent/browsers.rb