Module: UserAgent::Browsers::InternetExplorer
- Defined in:
- lib/user_agent/browsers/internet_explorer.rb
Class Method Summary collapse
Instance Method Summary collapse
- #browser ⇒ Object
- #compatibility ⇒ Object
- #compatible? ⇒ Boolean
- #os ⇒ Object
- #platform ⇒ Object
- #version ⇒ Object
Class Method Details
.extend?(agent) ⇒ Boolean
4 5 6 7 8 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 4 def self.extend?(agent) agent.application && agent.application.comment && agent.application.comment[0] == "compatible" end |
Instance Method Details
#browser ⇒ Object
10 11 12 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 10 def browser "Internet Explorer" end |
#compatibility ⇒ Object
18 19 20 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 18 def compatibility application.comment[0] end |
#compatible? ⇒ Boolean
22 23 24 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 22 def compatible? compatibility == "compatible" end |
#os ⇒ Object
30 31 32 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 30 def os .normalize_os(application.comment[2]) end |
#platform ⇒ Object
26 27 28 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 26 def platform "Windows" end |
#version ⇒ Object
14 15 16 |
# File 'lib/user_agent/browsers/internet_explorer.rb', line 14 def version application.comment[1].sub("MSIE ", "") end |