class Leeroy::Types::PackedString
Public Instance Methods
pack(input = self.to_s)
click to toggle source
# File lib/leeroy/types/packedstring.rb, line 12 def pack(input = self.to_s) Base64.urlsafe_encode64(Zlib::Deflate.deflate(input)) end
Also aliased as: dumper
unpack(input = self.to_s)
click to toggle source
# File lib/leeroy/types/packedstring.rb, line 16 def unpack(input = self.to_s) Zlib::Inflate.inflate(Base64.urlsafe_decode64(input)) end
Also aliased as: extract