Sha256: 1514f3e67fddd988cb84497ef196d5e4334dad66c5b8230197925b5b4585967b

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true
module Browser
  module Meta
    class IE < Base
      def version
        @version ||= browser.version.to_i
      end

      def meta
        return unless browser.ie?

        meta = []
        meta << "oldie lt-ie8 lt-ie9" if version < 8
        meta << "lt-ie9" if version == 8
        meta.join(" ")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/lib/browser/meta/ie.rb
browser-2.3.0 lib/browser/meta/ie.rb
browser-2.2.0 lib/browser/meta/ie.rb
browser-2.1.0 lib/browser/meta/ie.rb
browser-2.0.3 lib/browser/meta/ie.rb
browser-2.0.2 lib/browser/meta/ie.rb
browser-2.0.1 lib/browser/meta/ie.rb