1366件ヒット
[1301-1366件を表示]
(0.076秒)
ライブラリ
モジュール
- Fiddle (11)
- FileTest (22)
- JSON (11)
- Kernel (192)
- Open3 (198)
- OpenSSL (44)
-
OpenSSL
:: ASN1 (517) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (99) - Syslog (220)
- Timeout (19)
-
Win32
:: Registry :: API (11)
キーワード
- BMPString (22)
- BitString (22)
- Boolean (22)
- Enumerated (22)
- GeneralString (22)
- GeneralizedTime (22)
- GraphicString (22)
- IA5String (22)
- ISO64String (22)
- Integer (22)
- Null (22)
- NumericString (22)
- ObjectId (22)
- OctetString (22)
- OpenKey (11)
- PrintableString (22)
- Sequence (22)
- Set (22)
- T61String (22)
- UTCTime (22)
- UTF8String (22)
- UniversalString (22)
- VideotexString (22)
- alert (11)
- capture2 (11)
- capture2e (11)
- capture3 (11)
- close (11)
- crit (11)
- debug (22)
- debug= (11)
- decode (11)
-
decode
_ all (11) - directory? (11)
- dlopen (11)
- dump (11)
- egd (11)
-
egd
_ bytes (11) - emerg (11)
- err (11)
- errors (11)
- exec (44)
- facility (11)
- fail (33)
-
fips
_ mode= (11) - ident (11)
- identical? (11)
- info (11)
-
load
_ random _ file (11) - log (11)
- mask (11)
- mask= (11)
- notice (11)
- open! (11)
- opened? (11)
-
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (11) - pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen2 (22)
- popen2e (22)
- popen3 (22)
-
pseudo
_ bytes (11) - raise (33)
-
random
_ add (11) -
random
_ bytes (11) - reopen (11)
- seed (11)
- spawn (44)
- status? (11)
- timeout (19)
- traverse (11)
- warning (11)
-
write
_ random _ file (11)
検索結果
先頭5件
-
FileTest
. # directory?(file) -> bool (7.0) -
ファイルがディレクトリの時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...ブジェクト file が既に close されていた場合に発生します。
例:
FileTest.directory?('/etc') # => true
FileTest.directory?('/etc/passwd') # => false
f = File.open('/etc')
FileTest.directory?(f) # => true
f.close
FileTest.directory?(f) # => IOError: closed stream... -
JSON
. # dump(object , io = nil , limit = nil) -> String | IO (7.0) -
与えられたオブジェクトを JSON 形式の文字列に変換してダンプします。
...uby]{
require "json"
JSON.dump({ name: "tanaka", age: 19 }) # => "{\"name\":\"tanaka\",\"age\":19}"
//}
//emlist[例][ruby]{
require "json"
File.open("test.txt", "w") do |f|
JSON.dump([[[[[[[[[[]]]]]]]]]], f, 10) # => #<File:test.txt>
JSON.dump([[[[[[[[[[[]]]]]]]]]]], f, 10) # => exceed dep... -
Kernel
. # exec(env , program , *args , options={}) -> () (7.0) -
引数で指定されたコマンドを実行します。
...替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep
@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)... -
Kernel
. # exec(program , *args , options={}) -> () (7.0) -
引数で指定されたコマンドを実行します。
...替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep
@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)... -
Kernel
. # exec(command , options={}) -> () (2.0) -
引数で指定されたコマンドを実行します。
引数で指定されたコマンドを実行します。
プロセスの実行コードはそのコマンド(あるいは shell)になるので、
起動に成功した場合、このメソッドからは戻りません。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options... -
Kernel
. # exec(env , command , options={}) -> () (2.0) -
引数で指定されたコマンドを実行します。
引数で指定されたコマンドを実行します。
プロセスの実行コードはそのコマンド(あるいは shell)になるので、
起動に成功した場合、このメソッドからは戻りません。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options...