Sha256: b7a6d0f46196b399d33b6a4d689737ed7242e79c1f10735665cf5acd35074113
Contents?: true
Size: 354 Bytes
Versions: 25
Compression:
Stored size: 354 Bytes
Contents
begin require 'base64' rescue LoadError end module ActiveSupport if defined? ::Base64 Base64 = ::Base64 else # Ruby 1.9 doesn't provide base64, so we wrap this here module Base64 def self.encode64(data) [data].pack("m") end def self.decode64(data) data.unpack("m").first end end end end
Version data entries
25 entries across 25 versions & 7 rubygems