1件ヒット
[1-1件を表示]
(0.067秒)
ライブラリ
- base64 (1)
検索結果
-
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......