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