Sha256: e56df1a35dd27eb19e5712f49aac2a8d3f5634eb570b7a4b431887c928544a2e

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

class GamesDice::Probabilities
  # @!visibility private
  # Adds support for Marshal, via to_h and from_h methods
  def _dump *ignored
    Marshal.dump to_h
  end

  # @!visibility private
  def self._load buf
    h = Marshal.load buf
    from_h h
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
games_dice-0.3.12 lib/games_dice/marshal.rb
games_dice-0.3.11 lib/games_dice/marshal.rb
games_dice-0.3.10 lib/games_dice/marshal.rb
games_dice-0.3.9 lib/games_dice/marshal.rb
games_dice-0.3.8 lib/games_dice/marshal.rb