class BCDice::GameSystem::FilledWith::Row
Public Class Methods
new(body, *args)
click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 215 def initialize(body, *args) @body = body @args = args end
Public Instance Methods
format(difficulty)
click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 220 def format(difficulty) args = @args.map { |e| e[difficulty.index] } Kernel.format(@body, *args) end