module Rgn

Constants

VERSION

Public Instance Methods

blacklist() click to toggle source

this method allows you to blacklist specific names

# File lib/rgn.rb, line 28
def blacklist
        print "Specify the name you want blacklisted: \n"
        bannedNames = gets.chomp.to_s

        if(randomName == bannedNames)
                        randomName = "default"
                        return randomName
        end
end
capGen() click to toggle source

return the auto-generated string in capital letters

# File lib/rgn.rb, line 18
def capGen
        randomName.capitalize!
end
generateName() click to toggle source
# File lib/rgn.rb, line 4
def generateName
              alph = "abcdefghijklmnopqrstuvwxyz"
              randomName = ""


              6.times do |str|
                      str = alph[rand(0..25)]
                      randomName += str
              end
              
              return randomName
end
lowGen() click to toggle source

return the auto-generated string in lowercase

# File lib/rgn.rb, line 23
def lowGen
        randomName.lowercase!
end