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.
211 212 213 214 |
# File 'lib/bcdice/game_system/FilledWith.rb', line 211 def initialize(body, *args) @body = body @args = args end |
Instance Method Details
#format(difficulty) ⇒ Object
216 217 218 219 |
# File 'lib/bcdice/game_system/FilledWith.rb', line 216 def format(difficulty) args = @args.map { |e| e[difficulty.index] } Kernel.format(@body, *args) end |