Class: Browser::Edge
- Inherits:
-
InternetExplorer
- Object
- Base
- InternetExplorer
- Browser::Edge
- Defined in:
- lib/browser/edge.rb
Constant Summary
Constants inherited from InternetExplorer
InternetExplorer::TRIDENT_MAPPING
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from InternetExplorer
#compatibility_view?, #msie_full_version, #msie_version
Methods inherited from Base
#alipay?, #bot, #bot?, #chrome?, #compatibility_view?, #core_media?, #device, #edge?, #electron?, #facebook?, #firefox?, #ie?, #initialize, #known?, #meta, #micro_messenger?, #modern?, #msie_full_version, #msie_version, #nokia?, #opera?, #opera_mini?, #otter?, #phantom_js?, #platform, #proxy?, #quicktime?, #safari?, #safari_webapp_mode?, #to_s, #uc_browser?, #version, #webkit?, #webkit_full_version, #weibo?, #yandex?
Constructor Details
This class inherits a constructor from Browser::Base
Instance Method Details
#full_version ⇒ Object
13 14 15 |
# File 'lib/browser/edge.rb', line 13 def full_version ua[%r[Edge/([\d.]+)], 1] || super end |
#id ⇒ Object
5 6 7 |
# File 'lib/browser/edge.rb', line 5 def id :edge end |
#match? ⇒ Boolean
17 18 19 |
# File 'lib/browser/edge.rb', line 17 def match? ua =~ %r[(Edge/[\d.]+|Trident/8)] end |
#name ⇒ Object
9 10 11 |
# File 'lib/browser/edge.rb', line 9 def name "Microsoft Edge" end |