Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > shellライブラリ > Shellクラス > cmp

instance method Shell#cmp

compare(file1, file2) -> bool
cmp(file1, file2) -> bool

File クラスにある同名のクラスメソッドと同じです.

[PARAM] file1:
ファイルの名前を文字列で与えます。
[PARAM] file2:
新しいファイル名を文字列で与えます。

[SEE_ALSO] File.compare

class Shell