module UserAgents

Constants

FILE

Public Class Methods

list() click to toggle source
# File lib/useragents.rb, line 10
def list
  @@list ||= File.readlines FILE
end
rand() click to toggle source
# File lib/useragents.rb, line 14
def rand
  list.sample
end