Sha256: ad76083a8706609bc6182b79ac7c1224d32f9d93f2e4a1927d2c7015a538fd24

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

require "games_dice/version"
require "games_dice/constants"
require "games_dice/probabilities"
require "games_dice/die"
require "games_dice/die_result"
require "games_dice/reroll_rule"
require "games_dice/map_rule"
require "games_dice/complex_die"
require "games_dice/bunch"
require "games_dice/dice"
require "games_dice/parser"

module GamesDice
  # @!visibility private
  @@parser = GamesDice::Parser.new

  def self.create dice_description, prng = nil
    parsed = @@parser.parse( dice_description )
    GamesDice::Dice.new( parsed[:bunches], parsed[:offset], prng )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
games_dice-0.2.1 lib/games_dice.rb