class Faker::DnD

Public Class Methods

alignment() click to toggle source
# File lib/faker_dnd.rb, line 7
def self.alignment
  order = ['lawful', 'neutral', 'chaotic']
  goodness = ['good', 'neutral', 'evil']
  alignment = order.sample + ' ' + goodness.sample
end
class() click to toggle source
# File lib/faker_dnd.rb, line 3
def self.class
  ['druid', 'cleric', 'fighter', 'magic user', 'thief', 'mystic'].sample
end
race() click to toggle source
# File lib/faker_dnd.rb, line 13
def self.race
  ['human', 'elf', 'dwarf', 'gnome', 'half-elf', 'half-orc', 'halfing'].sample
end