Class: RpgNaming::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg_naming.rb

Instance Method Summary collapse

Constructor Details

#initialize(min = 0, max = nil) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/rpg_naming.rb', line 6

def initialize(min = 0, max = nil)
  @min, @max = min, max
end

Instance Method Details

#memberObject



14
15
16
# File 'lib/rpg_naming.rb', line 14

def member
  select_range(RpgNaming.names.values_at("males", "females").flatten).sample
end