instance method encode64s

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

encode64s(value)

Encodes the value as base64 without the newline breaks. This makes the base64 encoding readily usable as URL parameters or memcache keys without further processing.

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

Parameters

value req
Source
# File activesupport/lib/active_support/core_ext/base64/encoding.rb, line 10
        def encode64s(value)
          encode64(value).gsub(/\n/, '')
        end

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

Defined in ActiveSupport::CoreExtensions::Base64::Encoding

Type at least 2 characters to search.

↑↓ navigate · open · esc close