Module: UserAgent::Browsers

Defined in:
lib/user_agent/browsers.rb,
lib/user_agent/browsers/base.rb,
lib/user_agent/browsers/edge.rb,
lib/user_agent/browsers/gecko.rb,
lib/user_agent/browsers/opera.rb,
lib/user_agent/browsers/chrome.rb,
lib/user_agent/browsers/itunes.rb,
lib/user_agent/browsers/webkit.rb,
lib/user_agent/browsers/vivaldi.rb,
lib/user_agent/browsers/libavformat.rb,
lib/user_agent/browsers/playstation.rb,
lib/user_agent/browsers/podcast_addict.rb,
lib/user_agent/browsers/wechat_browser.rb,
lib/user_agent/browsers/apple_core_media.rb,
lib/user_agent/browsers/internet_explorer.rb,
lib/user_agent/browsers/windows_media_player.rb

Defined Under Namespace

Classes: AppleCoreMedia, Base, Chrome, Edge, Gecko, ITunes, InternetExplorer, Libavformat, Opera, PlayStation, PodcastAddict, Vivaldi, Webkit, WechatBrowser, WindowsMediaPlayer

Constant Summary collapse

Security =
{
  "N" => :none,
  "U" => :strong,
  "I" => :weak
}.freeze
ALL =
[
  Edge,
  InternetExplorer,
  Opera,
  WechatBrowser,
  Vivaldi,
  Chrome,
  ITunes,
  PlayStation,
  PodcastAddict,
  Webkit,
  Gecko,
  WindowsMediaPlayer,
  AppleCoreMedia,
  Libavformat,
].freeze

Class Method Summary collapse

Class Method Details

.allObject


42
43
44
# File 'lib/user_agent/browsers.rb', line 42

def self.all
  ALL
end

.extend(array) ⇒ Object


46
47
48
49
50
51
# File 'lib/user_agent/browsers.rb', line 46

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