Skip to Content Skip to Search
Methods
F
N

Class Public methods

new(user_agent)

# File app/services/service/browser_info_manager.rb, line 3
def initialize(user_agent)
  @browser = Browser.new(user_agent, {accept_language: "en-us"})
end

Instance Public methods

font_styles()

# File app/services/service/browser_info_manager.rb, line 7
def font_styles
  if super_modern_browser
    "fonts-styles-woff2"
  elsif modern_browser
    "fonts-styles-woff"
  elsif ie6_ie8
    "fonts-styles-eot"
  else
    "fonts-styles" # let the browser decide which one to use
  end
end