Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > shell/command-processorライブラリ > Shell::CommandProcessorクラス > cmp

instance method Shell::CommandProcessor#cmp

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

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

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

[SEE_ALSO] File.compare

class Shell::CommandProcessor