module Browser::Consoles

def console?

Detect if browser is console (currently Xbox, PlayStation, or Nintendo).
def console?
  xbox? || playstation? || nintendo?
end

def nintendo?

Detect if browser is Nintendo.
def nintendo?
  !!(ua =~ /nintendo/i)
end

def playstation?

Detect if browser is PlayStation.
def playstation?
  !!(ua =~ /playstation/i)
end

def xbox?

Detect if browser is Xbox.
def xbox?
  !!(ua =~ /xbox/i)
end