183件ヒット
[1-100件を表示]
(0.235秒)
種類
- モジュール関数 (99)
- 特異メソッド (44)
- インスタンスメソッド (40)
ライブラリ
- ビルトイン (44)
- fileutils (11)
-
ripper
/ lexer (11) -
ripper
/ sexp (22) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - syslog (77)
クラス
- File (11)
- Hash (22)
- Ripper (33)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
キーワード
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - facility (11)
- identical? (51)
- lex (11)
- open (22)
- open! (11)
- reopen (11)
- sexp (11)
-
sexp
_ raw (11)
検索結果
先頭5件
-
Syslog
. # ident -> String | nil (27307.0) -
最後のopenで与えられた対応する引数を返します。
...最後のopenで与えられた対応する引数を返します。
使用例
require 'syslog'
Syslog.open("syslogtest")
p Syslog.ident #=> "syslogtest"
p Syslog.options #=> 3
p Syslog.facility #=> 8... -
FileTest
. # identical?(file1 , file2) -> bool (24460.0) -
file1 と file2 が同じファイルを指している時に真を返します。 そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...file1 と file2 が同じファイルを指している時に真を返します。
そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ruby 1.8.3 以前ではKernel.#test(?-, file1, file2)を使......("a", "w") {}
p File.identical?("a", "a") #=> true
p File.identical?("a", "./a") #=> true
File.link("a", "b")
p File.identical?("a", "b") #=> true
File.symlink("a", "c")
p File.identical?("a", "c") #=> true
open("d", "w") {}
p File.identical?("a", "d") #=> fals......e
@param file1 ファイル名を表す文字列か IO オブジェクトを指定します。
@param file2 ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file1, file2 が既に close されていた場合に発... -
File
. identical?(filename1 , filename2) -> bool (24400.0) -
FileTest.#identical? と同じです。
...FileTest.#identical? と同じです。
@param filename1 パスを表す文字列か IO オブジェクトを指定します。
@param filename2 パスを表す文字列か IO オブジェクトを指定します。... -
Shell
# identical? (24400.0) -
@todo
@todo -
Shell
:: CommandProcessor # identical? (24400.0) -
@todo
@todo -
Shell
:: Filter # identical? (24400.0) -
@todo
@todo -
FileUtils
. # identical?(file _ a , file _ b) -> bool (21425.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
Hash
# compare _ by _ identity -> self (18430.0) -
ハッシュのキーの一致判定をオブジェクトの同一性で判定するように変更します。
...ect#object_idが一致しているかどうかを条件とするようにselfを変更します。
selfが変化する破壊的メソッドです。
@return selfを返します。
//emlist[例][ruby]{
h1 = { "a" => 100, "b" => 200, :c => "c" }
p h1.compare_by_identity? #=> false
p h1["a"]......#=> 100
h1.compare_by_identity
p h1.compare_by_identity? #=> true
p h1["a"] #=> nil # この"a"と最初の"a"とは違うオブジェクト
p h1[:c] #=> "c" # 同じ内容のシンボルはすべて同一
//}
@see Hash#compare_by_identity?... -
Syslog
. # facility -> Integer | nil (18407.0) -
最後のopenで与えられた対応する引数を返します。
...最後のopenで与えられた対応する引数を返します。
使用例
require 'syslog'
Syslog.open("syslogtest")
p Syslog.ident #=> "syslogtest"
p Syslog.options #=> 3
p Syslog.facility #=> 8... -
Hash
# compare _ by _ identity? -> bool (18400.0) -
ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。
...ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。
//emlist[例][ruby]{
h1 = {}
p h1.compare_by_identity? #=> false
h1.compare_by_identity
p h1.compare_by_identity? #=> true
//}
@see Hash#compare_by_identity... -
Syslog
. # options -> Integer | nil (12207.0) -
最後のopenで与えられた対応する引数を返します。
...最後のopenで与えられた対応する引数を返します。
使用例
require 'syslog'
Syslog.open("syslogtest")
p Syslog.ident #=> "syslogtest"
p Syslog.options #=> 3
p Syslog.facility #=> 8...