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

Version Path
motion-flow-0.1.8 flow/base64/cocoa/base64.rb
motion-flow-0.1.7 flow/base64/cocoa/base64.rb
motion-flow-0.1.6 flow/base64/cocoa/base64.rb
motion-flow-0.1.5 flow/base64/cocoa/base64.rb
motion-flow-0.1.4 flow/base64/cocoa/base64.rb
motion-flow-0.1.3 flow/base64/cocoa/base64.rb
motion-flow-0.1.2 flow/base64/cocoa/base64.rb
motion-flow-0.1.1 flow/base64/cocoa/base64.rb
motion-flow-0.1 flow/base64/cocoa/base64.rb