Class: Browser::Meta::IE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#alipay?, #bot, #bot?, #chrome?, #compatibility_view?, #core_media?, #device, #edge?, #electron?, #facebook?, #firefox?, #ie?, #initialize, #known?, #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?, #webkit?, #webkit_full_version, #weibo?, #yandex?
Constructor Details
This class inherits a constructor from Browser::Base
Instance Method Details
#meta ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/browser/meta/ie.rb', line 10 def return unless browser.ie? = [] << "oldie lt-ie8 lt-ie9" if version < 8 << "lt-ie9" if version == 8 .join(" ") end |
#version ⇒ Object
6 7 8 |
# File 'lib/browser/meta/ie.rb', line 6 def version @version ||= browser.version.to_i end |