class YAML::Store

def dump(table)

def dump(table)
  table.to_yaml(@opt)
end

def empty_marshal_checksum

def empty_marshal_checksum
  CHECKSUM_ALGO.digest(empty_marshal_data)
end

def empty_marshal_data

def empty_marshal_data
  {}.to_yaml(@opt)
end

def initialize( *o )

store to YAML via Hash#to_yaml().
Options passed in through +yaml_opts+ will be used when converting the

then it will become thread-safe at the cost of a minor performance hit.
YAML::Store objects are always reentrant. But if _thread_safe_ is set to true,

If the file does not already exist, it will be created.
Creates a new YAML::Store object, which will store data in +file_name+.

initialize( file_name, thread_safe = false, yaml_opts = {} )
initialize( file_name, yaml_opts = {} )
:call-seq:
def initialize( *o )
  @opt = {}
  if o.last.is_a? Hash
    @opt.update(o.pop)
  end
  super(*o)
end

def load(content)

def load(content)
  table =  if YAML.respond_to?(:safe_load)
    if Psych::VERSION >= "3.1"
      YAML.safe_load(content, permitted_classes: [Symbol])
    else
      YAML.safe_load(content, [Symbol])
    end
  else
    YAML.load(content)
  end
  if table == false || table == nil
    {}
  else
    table
  end
end

def marshal_dump_supports_canonical_option?

def marshal_dump_supports_canonical_option?
  false
end