Sha256: 4649b61216f0d3e1bf2ef31f79b5cf60254c77aa79c1a901818c2043758249ce
Contents?: true
Size: 293 Bytes
Versions: 9
Compression:
Stored size: 293 Bytes
Contents
class Base64 def self.encode(string) data = string.to_data data.base64EncodedStringWithOptions(0) end def self.decode(string) data = NSData.alloc.initWithBase64EncodedString(string, options: 0) NSString.alloc.initWithData(data, encoding: NSUTF8StringEncoding) end end
Version data entries
9 entries across 9 versions & 1 rubygems