Class: GamesAndRpgParadise::ShakesAndFidgets::HallofFame

Inherits:
Object
  • Object
show all
Defined in:
lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb

Instance Method Summary collapse

Constructor Details

#initialize(character_dataset) ⇒ HallofFame

#

initialize

#


20
21
22
23
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb', line 20

def initialize(character_dataset)
  @dataset = character_dataset
  run
end

Instance Method Details

#dataset?Boolean

#

dataset?

#

Returns:

  • (Boolean)


28
29
30
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb', line 28

def dataset?
  @dataset
end

#runObject

#

run

#


35
36
37
38
39
40
41
42
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb', line 35

def run
  e 'Rang | Name | Gilde | Stufe | Ehre'
  points = dataset?.fame?
  e points
  name   = dataset?.name?
  level  = dataset?.level?
  e ' ?   | '+name+' --- '+level+' | '+points
end