Sha256: 85a2d6c3cac6ee860097349ce433f9dafa3efca3f3dcde691f0e5b52bd8fcc9e
Contents?: true
Size: 513 Bytes
Versions: 13
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true require 'user_agent_parser/parser' require 'user_agent_parser/user_agent' require 'user_agent_parser/version' require 'user_agent_parser/operating_system' require 'user_agent_parser/device' module UserAgentParser DefaultPatternsPath = File.join(File.dirname(__FILE__), '../vendor/uap-core/regexes.yaml') # Parse the given +user_agent_string+, returning a +UserAgent+ def self.parse(user_agent_string, options = {}) Parser.new(options).parse(user_agent_string) end end
Version data entries
13 entries across 13 versions & 2 rubygems