class Simple::HashSerializer
Public Class Methods
dump(simple_hash)
click to toggle source
# File lib/simple/hash_serializer.rb, line 2 def self.dump(simple_hash) return if simple_hash.nil? simple_hash.to_h end
load(hash)
click to toggle source
# File lib/simple/hash_serializer.rb, line 7 def self.load(hash) return if hash.nil? Simple::Hash.new(hash) end