lib/bad_browser/user_agent/browser_version.rb
# Logic in this method borrowed from Gem::Version#segments
Logic in this method borrowed from Gem::Version#segments
Logic in this method borrowed from Gem :: Version#segments
def parse(version)
    version.scan(/[0-9]+|[A-z]+/).map! do |str|
      str =~ /^\d+$/ ? str.to_i : str
    end
  end
def parse ( version ) version . scan ( / [0-9]+|[A-z]+ / ) . map! do | str | str =~ / ^ \d +$ / ? str . to_i : str end end
Logic in this method borrowed from Gem::Version#segments
Logic in this method borrowed from Gem :: Version#segments
version