るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.088秒)
トップページ > バージョン:2.3.0[x] > クエリ:l[x] > クエリ:Null[x] > クエリ:identical?[x]

別のキーワード

  1. openssl null
  2. asn1 null
  3. null new
  4. fiddle null
  5. fiddle null?

ライブラリ

モジュール

検索結果

FileUtils.#identical?(file_a, file_b) -> bool (63619.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
//}