Sha256: 270b27a863fec06f66db6c791cfc9e8a192c243ea7a73a4f32d3749b4a7ba703
Contents?: true
Size: 355 Bytes
Versions: 1
Compression:
Stored size: 355 Bytes
Contents
# frozen_string_literal: true module GamesDice # Probability calculations class 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
games_dice-0.4.0 | lib/games_dice/marshal.rb |