class method self.encode64s

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.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/base64.rb, line 39
  def Base64.encode64s(value)
    encode64(value).gsub(/\n/, '')
  end

Defined in activesupport/lib/active_support/base64.rb line 39 · 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