るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.010秒)
トップページ > クエリ:urandom[x] > ライブラリ:fileutils[x]

別のキーワード

  1. random urandom
  2. _builtin urandom
  3. urandom random
  4. urandom _builtin

モジュール

キーワード

検索結果

FileUtils.#cmp(file_a, file_b) -> bool (8.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
//}...

FileUtils.#compare_file(file_a, file_b) -> bool (8.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
//}...

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