Class: BCDice::GameSystem::FilledWith::Row
- Inherits:
-
Object
- Object
- BCDice::GameSystem::FilledWith::Row
- Defined in:
- lib/bcdice/game_system/FilledWith.rb
Instance Method Summary collapse
- #format(difficulty) ⇒ Object
-
#initialize(body, *args) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(body, *args) ⇒ Row
Returns a new instance of Row.
215 216 217 218 |
# File 'lib/bcdice/game_system/FilledWith.rb', line 215 def initialize(body, *args) @body = body @args = args end |
Instance Method Details
#format(difficulty) ⇒ Object
220 221 222 223 |
# File 'lib/bcdice/game_system/FilledWith.rb', line 220 def format(difficulty) args = @args.map { |e| e[difficulty.index] } Kernel.format(@body, *args) end |