module Rack::SimpleUserAgent::Detectors

Public Instance Methods

from_smartdevice?() click to toggle source
# File lib/rack/simple_user_agent/detectors.rb, line 16
def from_smartdevice?
  from_ios? || from_android? || from_windows_phone?
end
from_smartphone?() click to toggle source
# File lib/rack/simple_user_agent/detectors.rb, line 20
def from_smartphone?
  from_iphone? || from_ipod? || from_android_mobile? || from_windows_phone?
end
from_tablet?() click to toggle source
# File lib/rack/simple_user_agent/detectors.rb, line 24
def from_tablet?
  from_ipad? || from_android_tablet?
end

Private Instance Methods

user_agent_string() click to toggle source
# File lib/rack/simple_user_agent/detectors.rb, line 30
def user_agent_string
  user_agent.to_s
end