Sha256: 1721d30cf333e99b00c69909d0a766c8720b76006681ea4bbf6801e59e55d5a1

Contents?: true

Size: 240 Bytes

Versions: 5

Compression:

Stored size: 240 Bytes

Contents

# frozen_string_literal: true

module Rack
  class SimpleUserAgent
    module Detectors
      module WindowsPhone
        def from_windows_phone?
          user_agent_string.include?('Windows Phone')
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-simple_user_agent-1.1.1 lib/rack/simple_user_agent/detectors/windows_phone.rb
rack-simple_user_agent-1.1.0 lib/rack/simple_user_agent/detectors/windows_phone.rb
rack-simple_user_agent-1.0.0 lib/rack/simple_user_agent/detectors/windows_phone.rb
rack-simple_user_agent-0.6.0 lib/rack/simple_user_agent/detectors/windows_phone.rb
rack-simple_user_agent-0.5.0 lib/rack/simple_user_agent/detectors/windows_phone.rb