るりまサーチ

最速Rubyリファレンスマニュアル検索!
453件ヒット [1-100件を表示] (0.036秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file path
  4. file lstat
  5. file chmod

検索結果

<< 1 2 3 ... > >>

File.truncate(path, length) -> 0 (27112.0)

path で指定されたファイルのサイズを最大 length バイト にします。

...す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@raise Errno::EXXX 失敗した場合に発生します。

//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File
.truncate("testfile", 5) # => 0
File
.size("testfile") # => 5
//}...

File#truncate(length) -> 0 (27106.0)

ファイルのサイズを最大 length バイトにします。

...書き込み用にオープンされていなければ発生します。

@raise Errno::EXXX サイズの変更に失敗した場合に発生します。

//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File
.open("testfile", "a") do |f|
f.truncate(5) # => 0
f.size # => 5
end
//}...

Shell#cat(*files) -> Shell::Filter (18237.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...m files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file
.chomp!
cat
(file).each { |l|
echo(l) | tee(file...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (18237.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...m files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file
.chomp!
cat
(file).each { |l|
echo(l) | tee(file...

Shell::Filter#cat(*files) -> Shell::Filter (18237.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...m files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file
.chomp!
cat
(file).each { |l|
echo(l) | tee(file...

絞り込み条件を変える

ObjectSpace.#allocation_sourcefile(object) -> String (12212.0)

objectの元となったソースファイル名を返します。

...uire 'objspace'

ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}

@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...

Gem::Specification#test_suite_file=(file) (9208.0)

この属性は非推奨です。 Gem::Specification#test_files= を使用してください。

...この属性は非推奨です。 Gem::Specification#test_files= を使用してください。

@param file テストスイートのファイルを指定します。...

Gem::Specification#test_file=(file) (9202.0)

Gem::Specification#test_files= の単数バージョンです。

...Gem::Specification#test_files= の単数バージョンです。...

Gem::Specification#files=(files) (9200.0)

この Gem パッケージに含まれるファイル名の配列をセットします。

...この Gem パッケージに含まれるファイル名の配列をセットします。

@param files この Gem パッケージに含まれるファイル名の配列を指定します。...

Gem::Specification#test_files=(files) (9200.0)

ユニットテストのファイルのリストをセットします。

...ユニットテストのファイルのリストをセットします。

@param files ユニットテストのファイルのリストを指定します。...

絞り込み条件を変える

Gem::Specification#file_name -> String (9101.0)

生成される Gem パッケージの名前を返します。

生成される Gem パッケージの名前を返します。
<< 1 2 3 ... > >>