Class: BCDice::GameSystem::FilledWith::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdice/game_system/FilledWith.rb

Instance Method Summary collapse

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