Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > base64ライブラリ > Base64モジュール > urlsafe_encode64
urlsafe_encode64(bin) -> String
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは [RFC4648] の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。 "-" を "+" に "_" を "/" に置き換えます。