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