class UserAgent::Browsers::ITunes

def full_os

Returns:
  • (String) - The operating system
def full_os
  if application && application.comment && application.comment.length > 1
    full_os = application.comment[1]
    full_os = "#{full_os})" if full_os =~ /\(Build [0-9][0-9][0-9][0-9]\z/ # The regex chops the ) off :(
    full_os
  end
end