種類
ライブラリ
- ビルトイン (635)
- base64 (72)
-
cgi
/ html (24) - digest (12)
- erb (12)
- json (12)
- kconv (24)
-
net
/ ftp (60) -
net
/ http (36) -
net
/ imap (84) - nkf (12)
- openssl (72)
- rake (24)
-
rdoc
/ code _ object (240) -
rdoc
/ context (12) - resolv (24)
- rss (24)
- stringio (38)
- uri (112)
-
webrick
/ httpstatus (96) -
win32
/ registry (12) - win32ole (48)
- zlib (24)
クラス
-
ARGF
. class (38) - Encoding (368)
- IO (38)
-
Net
:: FTP (60) -
Net
:: HTTPResponse (36) -
Net
:: IMAP (36) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (228) - Refinement (4)
- Regexp (22)
- String (153)
- StringIO (38)
-
URI
:: FTP (36) - WIN32OLE (36)
-
Win32
:: Registry :: Error (12) -
Zlib
:: GzipFile (12)
モジュール
- Base64 (72)
-
CGI
:: HtmlExtension (24) - Digest (12)
-
ERB
:: Util (12) - Kconv (12)
- Kernel (12)
-
OpenSSL
:: ASN1 (24) -
OpenSSL
:: X509 (12) -
RSS
:: ContentModel (24) - RakeFileUtils (24)
- URI (76)
-
WEBrick
:: HTTPStatus (96) - Zlib (12)
キーワード
-
$ KCODE (12) -
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - CP437 (12)
- CP720 (4)
- CP737 (12)
- CP775 (12)
- CP850 (12)
- CP852 (12)
- CP855 (12)
- CP857 (12)
- CP860 (12)
- CP861 (12)
- CP862 (12)
- CP863 (12)
- CP864 (12)
- CP865 (12)
- CP866 (12)
- CP869 (12)
- CodeObject (12)
- Context (12)
- ConverterNotFoundError (12)
- DecodeError (12)
- EncodeError (12)
- HMAC (12)
- IBM437 (12)
- IBM720 (4)
- IBM737 (12)
- IBM775 (12)
- IBM850 (12)
- IBM852 (12)
- IBM855 (12)
- IBM857 (12)
- IBM860 (12)
- IBM861 (12)
- IBM862 (12)
- IBM863 (12)
- IBM864 (12)
- IBM865 (12)
- IBM866 (12)
- IBM869 (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
-
OS
_ CODE (12) - ResponseCode (12)
- Ruby用語集 (12)
-
V
_ ERR _ UNABLE _ TO _ DECODE _ ISSUER _ PUBLIC _ KEY (12) - WIN32OLE (12)
- [] (12)
-
client
_ error? (12) - codepage (12)
- codepage= (12)
- codepoints (66)
- comment (12)
- comment= (12)
- compile (11)
-
content
_ encoded (12) -
content
_ encoded= (12) - data (12)
- decode (19)
- decode64 (12)
-
decode
_ all (12) -
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) - documented? (12)
- drb (12)
- each (12)
-
each
_ codepoint (96) - encode (43)
- encode! (24)
- encode64 (12)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - error? (12)
- escape (7)
- form (24)
- hexencode (12)
-
import
_ methods (4) - info? (12)
- kconv (36)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- locale= (12)
- name (12)
- new (23)
- new2 (12)
- nowrite (12)
-
os
_ code (12) - parent (12)
- parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - rake (12)
-
rdoc
/ code _ object (12) -
rdoc
/ code _ objects (12) -
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) -
reason
_ phrase (12) - redirect? (12)
-
remove
_ classes _ and _ modules (12) -
remove
_ methods _ etc (12) -
return
_ code (12) -
return
_ code= (12) -
rexml
/ document (12) - section (12)
- section= (12)
-
server
_ error? (12) -
start
_ doc (12) - status (12)
-
stop
_ doc (12) -
strict
_ decode64 (12) -
strict
_ encode64 (12) - success? (12)
-
test
/ unit (12) - typecode (12)
- typecode= (12)
- unescape (7)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) -
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - verbose (12)
- xlist (12)
- xmlrpc (3)
検索結果
先頭5件
-
ARGF
. class # each _ codepoint { |c| . . . } -> self (6100.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...す。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,... -
Base64
. # decode64(str) -> String (6100.0) -
与えられた文字列を Base64 デコードしたデータを返します。
...文字列を指定します。
require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)
# This is line one
# This is line two
# This is line three
# And so on...... -
Base64
. # encode64(bin) -> String (6100.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...字ごとに改行を追加します。
@param bin Base64 エンコードするデータを指定します。
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
# UnVieQ==... -
Base64
. # strict _ decode64(str) -> String (6100.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 に対応しています。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例外は発生します。 -
Base64
. # strict _ encode64(bin) -> String (6100.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。 -
Base64
. # urlsafe _ decode64(str) -> String (6100.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例... -
Base64
. # urlsafe _ encode64(bin , padding: true) -> String (6100.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...データを指定します。
@param padding false を指定した場合、 = によるパディングが行われなくなります。
//emlist[例][ruby]{
require 'base64'
p Base64.urlsafe_encode64('hoge')
# => "aG9nZQ=="
p Base64.urlsafe_encode64('hoge', padding: false)
# => "aG9nZQ"
//}... -
Digest
. # hexencode(string) -> String (6100.0) -
引数である文字列 string を、16進数に変換した文字列を生成して返します。
...'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) # =......8ed9aadf"
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") # => "18e40e1401eef67e1ae69efab09afb... -
IO
# codepoints -> Enumerator (6100.0) -
このメソッドは obsolete です。 代わりに IO#each_codepoint を使用してください。
...このメソッドは obsolete です。
代わりに IO#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。
IO の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポ......イントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
@see IO#each_codepoint... -
IO
# codepoints {|c| . . . } -> self (6100.0) -
このメソッドは obsolete です。 代わりに IO#each_codepoint を使用してください。
...このメソッドは obsolete です。
代わりに IO#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。
IO の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポ......イントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
@see IO#each_codepoint... -
IO
# each _ codepoint -> Enumerator (6100.0) -
IO の各コードポイントに対して繰り返しブロックを呼びだします。
...にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
//emlist[例][ruby]{
IO.write("testfile", "abcdeあ")
File.open("testfile") do |f|
f.each_codepoint { |i| p i }
end
# => 97
# 98
# 99
# 100
# 101
# 12354
//}...