1760件ヒット
[1701-1760件を表示]
(0.155秒)
ライブラリ
- ビルトイン (422)
- abbrev (12)
- base64 (72)
- digest (12)
-
digest
/ bubblebabble (12) - erb (48)
- etc (60)
- fileutils (24)
- json (84)
- kconv (60)
- nkf (12)
- objspace (24)
- open-uri (8)
- open3 (144)
- openssl (372)
- readline (12)
- rubygems (48)
- shellwords (48)
- syslog (36)
-
webrick
/ accesslog (24) -
webrick
/ htmlutils (12) -
webrick
/ httpstatus (12) -
webrick
/ httputils (84) -
webrick
/ utils (24) -
win32
/ resolv (24) - zlib (70)
クラス
-
Win32
:: Resolv (24)
モジュール
- Abbrev (12)
- Base64 (72)
- Digest (24)
-
ERB
:: Util (48) - Etc (60)
- FileUtils (24)
- Gem (48)
- JSON (84)
- Kconv (60)
- Kernel (344)
- Marshal (24)
- NKF (12)
- ObjectSpace (24)
- Open3 (144)
- OpenSSL (12)
-
OpenSSL
:: ASN1 (312) -
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (24) - Process (26)
- Readline (12)
- Shellwords (48)
- Signal (36)
- Syslog (36)
-
WEBrick
:: AccessLog (24) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPStatus (12) -
WEBrick
:: HTTPUtils (84) -
WEBrick
:: Utils (24) - Zlib (70)
キーワード
- BMPString (24)
- BitString (24)
- Float (12)
- GeneralString (24)
- GraphicString (24)
- IA5String (24)
- ISO64String (24)
- Integer (12)
- NumericString (24)
- OctetString (24)
- PrintableString (24)
- T61String (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
-
_ _ dir _ _ (12) - ` (12)
- abbrev (12)
- adler32 (17)
-
allocation
_ sourcefile (12) - argv0 (12)
- autoload (12)
- autoload? (12)
- bubblebabble (12)
- caller (36)
- capture2 (12)
- capture2e (12)
- capture3 (12)
- chomp (12)
- chop (12)
- confstr (12)
-
count
_ objects _ size (12) - crc32 (17)
- decode64 (12)
- deflate (12)
- dequote (12)
- dir (12)
- dump (12)
- encode64 (12)
- errors (12)
- escape (36)
- escape8bit (12)
-
escape
_ path (12) - facility (12)
-
fast
_ generate (12) -
fast
_ unparse (12) - format (24)
- generate (12)
-
get
_ hosts _ path (12) -
get
_ resolv _ info (12) - getlogin (12)
- gets (12)
- getservername (12)
- getwd (12)
- gsub (36)
- h (12)
- hexencode (12)
-
html
_ escape (12) - ident (12)
- inflate (12)
- iseuc (12)
- isjis (12)
- kconv (12)
- load (12)
-
marshal
_ version (12) -
mime
_ type (12) - nkf (12)
- open (8)
-
pbkdf2
_ hmac (12) -
pbkdf2
_ hmac _ sha1 (12) - pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - prefix (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
pseudo
_ bytes (12) - pwd (12)
- quote (12)
-
random
_ bytes (12) -
random
_ string (12) - readline (24)
- readlines (12)
-
reason
_ phrase (12) - restore (12)
- ruby (12)
- setproctitle (12)
- shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
- signame (12)
- sprintf (12)
-
strict
_ decode64 (12) -
strict
_ encode64 (12) - sub (24)
- sysconfdir (12)
- systmpdir (12)
- toeuc (12)
- tolocale (12)
-
trace
_ var (36) - trap (48)
- u (12)
- uname (12)
- unescape (12)
- unparse (12)
-
untrace
_ var (12) -
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - warmup (2)
-
zlib
_ version (12)
検索結果
先頭5件
-
NKF
. # nkf(opt , str) -> String (108.0) -
文字列 str の文字コードを変換し、変換結果の文字列を返します。
...文字列は NKF のオプション文字列の項を
見てください。
オプションを複数指定する場合は、NKF.nkf('-Se', str) や
NKF.nkf('-S -e', str) などとします。optは、必ず '-'
で始めなければいけないことに注意してください。
@param opt オプ......字列です。
@param str 変換対象の文字列です。
=== 注意
このメソッドは(nkf コマンドがそうであるように)、MIME Base64 の
デコード処理がデフォルトでオンになっています。この動作を無効にしたけ
れば opt に '-m0' を含めてく... -
Marshal
. # load(port , proc = nil) -> object (107.0) -
port からマーシャルデータを読み込んで、元のオブジェクトと同 じ状態をもつオブジェクトを生成します。
...出します。
//emlist[例][ruby]{
str = Marshal.dump(["a", 1, 10 ** 10, 1.0, :foo])
p Marshal.load(str, proc {|obj| p obj})
# => "a"
# 1
# 10000000000
# 1.0
# :foo
# ["a", 1, 10000000000, 1.0, :foo]
# ["a", 1, 10000000000, 1.0, :foo]
//}
@param port String か IO (または......そのサブクラス)の
インスタンスを指定します。
@param proc 手続きオブジェクト。Proc
@raise TypeError メジャーバージョンが異なるか、バージョンの大きな
マーシャルデータを読み込んだ場合に発生します... -
Syslog
. # facility -> Integer | nil (102.0) -
最後のopenで与えられた対応する引数を返します。
...最後のopenで与えられた対応する引数を返します。
使用例
require 'syslog'
Syslog.open("syslogtest")
p Syslog.ident #=> "syslogtest"
p Syslog.options #=> 3
p Syslog.facility #=> 8... -
Syslog
. # options -> Integer | nil (102.0) -
最後のopenで与えられた対応する引数を返します。
...最後のopenで与えられた対応する引数を返します。
使用例
require 'syslog'
Syslog.open("syslogtest")
p Syslog.ident #=> "syslogtest"
p Syslog.options #=> 3
p Syslog.facility #=> 8... -
Kconv
. # isjis(str) -> bool (13.0) -
文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
...r 判定対象の文字列
@see String#isjis
//emlist[例][ruby]{
require 'kconv'
euc_str = "\
\xa5\xaa\xa5\xd6\xa5\xb8\xa5\xa7\xa5\xaf\xa5\xc8\xbb\xd8\xb8\xfe\
\xa5\xd7\xa5\xed\xa5\xb0\xa5\xe9\xa5\xdf\xa5\xf3\xa5\xb0\xb8\xc0\xb8\xec\
\x52\x75\x62\x79".force_encoding('EUC-JP')
jis_str = "\
\x1b\x......24\x42\x25\x2a\x25\x56\x25\x38\x25\x27\x25\x2f\x25\x48\x3b\x58\x38\x7e\
\x25\x57\x25\x6d\x25\x30\x25\x69\x25\x5f\x25\x73\x25\x30\x38\x40\x38\x6c\x1b\x28\x42\
\x52\x75\x62\x79".force_encoding('ISO-2022-JP')
euc_str.isjis # => false
jis_str.isjis # => true
//}...