ライブラリ
クラス
-
ARGF
. class (36) - Encoding (12)
-
Encoding
:: Converter (36) - IO (84)
-
Net
:: IMAP (24) - String (160)
- StringScanner (60)
- Symbol (21)
モジュール
- Base64 (36)
-
CGI
:: HtmlExtension (24) - Digest (12)
-
ERB
:: Util (24) -
JSON
:: Generator :: GeneratorMethods :: String (12) - Kconv (12)
-
RSS
:: ContentModel (24) - URI (62)
キーワード
- CompatibilityError (12)
- Converter (12)
- ConverterNotFoundError (12)
- EncodeError (12)
- InvalidByteSequenceError (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) - NKF (12)
- String (12)
- UndefinedConversionError (12)
- base64 (12)
- casecmp (24)
- casecmp? (18)
-
content
_ encoded (12) -
content
_ encoded= (12) -
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
default
_ internal (12) -
each
_ codepoint (24) - encode! (24)
- encode64 (12)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - encoding (12)
- escape (7)
-
for
_ fd (12) - form (24)
-
get
_ byte (12) - getbyte (12)
- getch (12)
- hexencode (12)
- match? (12)
-
matched
_ size (12) - new (79)
- open (24)
-
ruby 1
. 8 . 3 feature (12) -
set
_ encoding (72) -
strict
_ encode64 (12) -
to
_ json _ raw _ object (12) - tolocale (24)
- u (12)
-
url
_ encode (12) -
urlsafe
_ encode64 (12) - 多言語化 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Base64
. # urlsafe _ encode64(bin , padding: true) -> String (6113.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...データを指定します。
@param padding false を指定した場合、 = によるパディングが行われなくなります。
//emlist[例][ruby]{
require 'base64'
p Base64.urlsafe_encode64('hoge')
# => "aG9nZQ=="
p Base64.urlsafe_encode64('hoge', padding: false)
# => "aG9nZQ"
//}... -
Base64
. # encode64(bin) -> String (6107.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...字ごとに改行を追加します。
@param bin Base64 エンコードするデータを指定します。
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
# UnVieQ==... -
Net
:: IMAP . encode _ utf7(str) -> String (6107.0) -
UTF-8 の文字列を modified UTF-7 の文字列に変換します。
...。
modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。
詳しくは Net::IMAP.encode_utf7 を見てください。
@param str 変換対象の UTF-8 でエンコードされた文字列
@see Net::IMAP.decode_utf7... -
Base64
. # strict _ encode64(bin) -> String (6101.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。 -
Digest
. # hexencode(string) -> String (6100.0) -
引数である文字列 string を、16進数に変換した文字列を生成して返します。
...e 'digest'
p Digest.hexencode("") # => ""
p Digest.hexencode("d") # => "64"
p Digest.hexencode("\1\2") # => "0102"
p Digest.hexencode("\xB0") # => "b0"
p digest = Digest::MD5.digest("ruby") # => "X\xE5=\x13$\xEE\xF6&_\xDB\x97\xB0\x8E\xD9\xAA\xDF"
p Digest.hexencode(digest) #......08ed9aadf"
p digest = Digest::SHA1.digest("ruby") # => "\x18\xE4\x0E\x14\x01\xEE\xF6~\x1A\xE6\x9E\xFA\xB0\x9A\xFBq\xF8\x7F\xFB\x81"
p Digest.hexencode(digest) # => "18e40e1401eef67e1ae69efab09afb71f87ffb81"
p Digest::SHA1.hexdigest("ruby") # => "18e40e1401eef67e1ae69efab09af... -
RSS
:: ContentModel # content _ encoded (6100.0) -
@todo
@todo -
RSS
:: ContentModel # content _ encoded= (6100.0) -
@todo
@todo -
Resolv
:: DNS :: EncodeError (6000.0) -
DNSメッセージのエンコードに失敗したときに発生する 例外のクラスです。
DNSメッセージのエンコードに失敗したときに発生する
例外のクラスです。
通常このエラーは発生しません。
もし発生したならばライブラリのバグである可能性があります。 -
ERB
:: Util . # url _ encode(s) -> String (3107.0) -
文字列 s を URLエンコードした文字列を返します。
...を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
//}... -
URI
. escape(str , unsafe = URI :: UNSAFE) -> String (3013.0) -
URI 文字列をエンコードした文字列を返します。
...RI 文字列をエンコードした文字列を返します。
このメソッドは obsolete です。
代わりに
ERB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細...