lib/rambling/trie/serializers/marshal.rb in rambling-trie-2.3.0 vs lib/rambling/trie/serializers/marshal.rb in rambling-trie-2.3.1

- old
+ new

@@ -1,16 +1,17 @@ # frozen_string_literal: true module Rambling module Trie module Serializers - # Serializer for Ruby marshal format (.marshal) files. - class Marshal + # Serializer for Ruby marshal format (+.marshal+) files. + class Marshal < Serializer # Creates a new Marshal serializer. # @param [Serializer] serializer the serializer responsible to write to # and read from disk. def initialize serializer = nil @serializer = serializer || Rambling::Trie::Serializers::File.new + super() end # Loads marshaled object from contents in filepath and deserializes it # into a {Nodes::Node Node}. # @param [String] filepath the full path of the file to load the