1880件ヒット
[1801-1880件を表示]
(0.192秒)
ライブラリ
- ビルトイン (446)
- abbrev (12)
- base64 (72)
- digest (12)
-
digest
/ bubblebabble (12) - drb (12)
- erb (48)
- etc (60)
- fileutils (24)
- json (84)
- kconv (144)
- 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)
- DRb (12)
- Digest (24)
-
ERB
:: Util (48) - Etc (60)
- FileUtils (24)
- Gem (48)
- JSON (84)
- Kconv (144)
- Kernel (344)
- Marshal (48)
- 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 (36)
- 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)
- issjis (12)
- isutf8 (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)
- tojis (12)
- tolocale (12)
- tosjis (12)
- toutf16 (12)
- toutf32 (12)
- toutf8 (12)
-
trace
_ var (36) - trap (48)
- u (12)
- uname (12)
- unescape (12)
- unparse (12)
-
untrace
_ var (12) - uri (12)
-
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - warmup (2)
-
zlib
_ version (12)
検索結果
先頭5件
-
Open3
. # pipeline _ rw(*cmds) -> [IO , IO , [Thread]] (231.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事も最後のコマンドの標準出力を受けとる事も できます。
...。それぞれのコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には......名を表す String を指定します。
1、2、3 は shell 経由で実行されます。
(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname, arg1, arg2, ..., options]
(5) [env, [cmdname, argv0], arg1, ..., options]
@return ブロック......Open3.pipeline_rw("sort", "cat -n") {|stdin, stdout, wait_thrs|
stdin.puts "foo"
stdin.puts "bar"
stdin.puts "baz"
# sortコマンドにEOFを送る。
stdin.close
# stdinに渡した文字列をsortコマンドが並べ替えたものに、catコマンド
# が... -
Open3
. # pipeline _ w(*cmds) -> [IO , [Thread]] (231.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事ができます。
...。それぞれのコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には......名を表す String を指定します。
1、2、3 は shell 経由で実行されます。
(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname, arg1, arg2, ..., options]
(5) [env, [cmdname, argv0], arg1, ..., options]
@return ブロック......た場合は最初に実行するコマンドの標準入力、
実行したプロセスを待つためのスレッドの配列を配列で返します。
例:
require "open3"
Open3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|w, ts|
w.puts "hello"
}
@see Open3.#popen3... -
Kconv
. # iseuc(str) -> bool (223.0) -
文字列 str が EUC-JP なバイト列として正当であるかどうかを判定します。
...文字列 str が EUC-JP なバイト列として正当であるかどうかを判定します。
@param str 判定対象の文字列
@see String#iseuc... -
Marshal
. # dump(obj , port , limit = -1) -> IO (216.0) -
obj を指定された出力先に再帰的に出力します。
...イルに書き出そうとすると
例外 TypeError が発生します。
ファイルに書き出せないオブジェクトは以下の通りです。
* 名前のついてない Class/Module オブジェクト。(この場
合は、例外 ArgumentError が発生します。無名クラス......持するもの。具体的には以下のイン
スタンス。Dir, File::Stat, IO とそのサブクラス
File, Socket など。
* MatchData, Data, Method, UnboundMethod,
Proc, Thread, ThreadGroup, Continuation
のインスタンス。
* 特異メソッドを定義したオブジェ......。
//emlist[例][ruby]{
p Marshal.dump(Hash.new {})
# => -:1:in `dump': cannot dump hash with default proc (TypeError)
//}
マーシャルの動作を任意に定義することもできます。
@param obj ダンプする対象のオブジェクトを指定します。
@param port IO かその... -
Abbrev
. # abbrev(words , pattern = nil) -> Hash (207.0) -
文字列の配列から一意に決まる短縮形を計算し、 短縮形をキー、元の文字列を値とするハッシュを返します。
...文字列で始まるものから短縮形を計算します。
@param words 元となる文字列の配列。
@param pattern Regexp か String を指定します。
@return 短縮形をキー、元の文字列を値とするハッシュを返します。
require 'abbrev'
# words に同......).sort
# => [["ruby", "ruby"]]
# 空白が含まれていても適切に処理します。
pp Abbrev.abbrev(['ru by']).sort
# => [["r", "ru by"],
# ["ru", "ru by"],
# ["ru ", "ru by"],
# ["ru b", "ru by"],
# ["ru by", "ru by"]]
# sort し......ていない例
p %w[ruby rubyist].abbrev
#=> {"ruby" => "ruby",
# "rubyi" => "rubyist",
# "rubyis" => "rubyist",
# "rubyist" => "rubyist"}... -
Kconv
. # issjis(str) -> bool (207.0) -
文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。
...文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。
@param str 判定対象の文字列
@see String#issjis... -
Marshal
. # load(port , proc = nil) -> object (207.0) -
port からマーシャルデータを読み込んで、元のオブジェクトと同 じ状態をもつオブジェクトを生成します。
...port からマーシャルデータを読み込んで、元のオブジェクトと同
じ状態をもつオブジェクトを生成します。
proc として手続きオブジェクトが与えられた場合には読み込んだ
オブジェクトを引数にその手続きを呼び出します......。
//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 メジャーバージョンが異なるか、バージョンの大きな
マーシャルデータを読み込んだ場合に発生します。... -
Process
. # warmup -> true (207.0) -
RubyVMにアプリケーションの起動が終了したこと及び、アプリケーションの最適化に適したタイミングであることを通知します。
...oderange([m:String#valid_encoding]などで使われる文字列の内容とエンコーディングとの整合性の情報)を事前計算します
(4) すべての空のヒープページを解放し、解放したページ数だけ割当可能なページカウンター(heap_allocatable_pages)......を増分します
(5) 空のmallocページを解放するためにmalloc_trimを呼び出します...