Sha256: 6cb0ff06a96d39f2141d00b84a5f93dbc754c45a1a20ea9d13e4095461eb7b62

Contents?: true

Size: 292 Bytes

Versions: 7

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true
module Browser
  module Meta
    class GenericBrowser < Base
      def meta
        "#{browser.id} #{browser.id}#{browser.version}" if generic?
      end

      private

      def generic?
        !browser.safari? && !browser.chrome?
      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/generic_browser.rb
browser-2.3.0 lib/browser/meta/generic_browser.rb
browser-2.2.0 lib/browser/meta/generic_browser.rb
browser-2.1.0 lib/browser/meta/generic_browser.rb
browser-2.0.3 lib/browser/meta/generic_browser.rb
browser-2.0.2 lib/browser/meta/generic_browser.rb
browser-2.0.1 lib/browser/meta/generic_browser.rb