class method self.decode64

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v3.2.22.5

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5

Signature

self.decode64(data)

Decodes a base 64 encoded string to its original representation.

ActiveSupport::Base64.decode64("T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw==") 
# => "Original unencoded string"

Parameters

data req
Source
# File activesupport/lib/active_support/base64.rb, line 28
      def self.decode64(data)
        data.unpack("m").first
      end

Defined in activesupport/lib/active_support/base64.rb line 28 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Base64

Type at least 2 characters to search.

↑↓ navigate · open · esc close