module SnakyHash::Serializer::ConvenienceInstanceMethods
Provides convenient instance methods for serialization
@example Using convenience methods
hash = MyHash.new(key: 'value') json = hash.dump #=> '{"key":"value"}'
Public Instance Methods
dump()
click to toggle source
Serializes the current hash instance to JSON
@return [String] JSON string representation of the hash
# File lib/snaky_hash/serializer.rb 120 def dump 121 self.class.dump(self) 122 end