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.
64 65 66 67 |
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 64 def initialize(pretext, table) @pretext = pretext @table = table end |
Instance Method Details
#roll(randomizer) ⇒ Object
69 70 71 |
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 69 def roll(randomizer) return "#{@pretext} > #{@table.roll(randomizer)}" end |