るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.067秒)
トップページ > バージョン:2.6.0[x] > クエリ:on[x] > クエリ:d[x] > モジュール:Base64[x]

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. socket udp_server_loop_on
  5. thread abort_on_exception

ライブラリ

検索結果

Base64.#decode64(str) -> String (36622.0)

与えられた文字列を Base64 デコードしたデータを返します。

...与えられた文字列を Base64 デコードしたデータを返します。

このメソッドは 2045 に対応しています。

@param str Base64 デコードする文字列を指定します。

require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaX...
...MgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)

# This is line one
# This is line two
# This is line three
# And so on......