Class: GamesAndRpgParadise::ShakesAndFidgets::HallofFame
- Inherits:
-
Object
- Object
- GamesAndRpgParadise::ShakesAndFidgets::HallofFame
- Defined in:
- lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb
Instance Method Summary collapse
-
#dataset? ⇒ Boolean
# === dataset? ========================================================================= #.
-
#initialize(character_dataset) ⇒ HallofFame
constructor
# === initialize ========================================================================= #.
-
#run ⇒ Object
# === run ========================================================================= #.
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?
#
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 |
#run ⇒ Object
#
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 |