46件ヒット
[1-46件を表示]
(0.078秒)
クラス
- File (12)
-
Net
:: FTP :: MLSxEntry (10) -
Rake
:: FileList (12)
モジュール
-
Rake
:: Cloneable (12)
検索結果
先頭4件
-
Rake
:: FileList # ==(array) -> bool (21125.0) -
自身を配列に変換してから与えられた配列と比較します。
...列と比較します。
@param array 比較対象の配列を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
file_list == file_list.to_a # => true
end
//}... -
File
# lstat -> File :: Stat (9160.0) -
ファイルの状態を含む File::Stat オブジェクトを生成して返します。 シンボリックリンクに関してリンクそのものの情報を返します。 lstat(2) を実装していないシステムでは、IO#statと同じです。
...ファイルの状態を含む File::Stat オブジェクトを生成して返します。
シンボリックリンクに関してリンクそのものの情報を返します。
lstat(2) を実装していないシステムでは、IO#statと同じです。
@raise Errno::EXXX 失敗した場合......ose されている場合に発生します。
//emlist[例][ruby]{
# testlink は testfile のシンボリックリンク
File.open("testlink") do |f|
p f.lstat == File.stat("testfile") # => false
p f.stat == File.stat("testfile") # => true
end
//}
@see IO#stat, File.stat, File.lstat... -
Net
:: FTP :: MLSxEntry # file? -> bool (6114.0) -
エントリの種類がファイルであれば true を返します。
...エントリの種類がファイルであれば true を返します。
Net::FTP::MLSxEntry#type == "file" と同じ意味です。... -
Rake
:: Cloneable # clone -> object (25.0) -
自身を複製します。
...ています。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
clone = file_list.clone
clone # => ["a.c", "b.c"]
clone.exclude("a.c")
clone == file_list # => false
end
//}...