Class: BCDice::GameSystem::ShinobiGami::DemonSkillTableForMetamorphose
- Inherits:
-
Object
- Object
- BCDice::GameSystem::ShinobiGami::DemonSkillTableForMetamorphose
- Defined in:
- lib/bcdice/game_system/ShinobiGami.rb
Instance Method Summary collapse
-
#initialize(pretext, table) ⇒ DemonSkillTableForMetamorphose
constructor
A new instance of DemonSkillTableForMetamorphose.
- #roll(randomizer) ⇒ Object
Constructor Details
#initialize(pretext, table) ⇒ DemonSkillTableForMetamorphose
Returns a new instance of DemonSkillTableForMetamorphose.
83 84 85 86 |
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 83 def initialize(pretext, table) @pretext = pretext @table = table end |
Instance Method Details
#roll(randomizer) ⇒ Object
88 89 90 |
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 88 def roll(randomizer) return "#{@pretext} > #{@table.roll(randomizer)}" end |