Sha256: 6edb360415d8fb9871505bfd905b16a9cdc33f716a6f9b2ade12386273026872

Contents?: true

Size: 141 Bytes

Versions: 2

Compression:

Stored size: 141 Bytes

Contents

require 'base64'

class String
  def to_base64
    Base64.strict_encode64 self
  end

  def unpack_base64
    Base64.decode64 self
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rickshaw-0.5.0 lib/core_ext/string/to_base64.rb
rickshaw-0.4.0 lib/core_ext/string/to_base64.rb