453件ヒット
[1-100件を表示]
(0.036秒)
ライブラリ
- ビルトイン (39)
- csv (11)
- objspace (11)
- pathname (11)
- rake (33)
-
rdoc
/ context (11) -
rubygems
/ source _ index (11) -
rubygems
/ specification (143) - shell (30)
-
shell
/ builtin-command (6) -
shell
/ command-processor (30) -
shell
/ filter (30)
クラス
- Binding (6)
- CSV (11)
- File (22)
-
Gem
:: SourceIndex (11) -
Gem
:: Specification (143) - IO (11)
- Pathname (11)
-
RDoc
:: Context (11) -
Rake
:: Application (33) - Shell (30)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Filter (30)
モジュール
- ObjectSpace (11)
キーワード
-
DEFAULT
_ RAKEFILES (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
allocation
_ sourcefile (11) -
close
_ on _ exec= (11) - debug (11)
- echo (18)
-
extra
_ rdoc _ files (11) -
extra
_ rdoc _ files= (11) -
file
_ name (11) - files (11)
- files= (11)
- glob (18)
-
lib
_ files (11) - load (11)
-
load
_ rakefile (11) -
load
_ specification (11) - new (6)
- rakefile (11)
- rdoc (11)
-
record
_ location (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
rubygems
/ commands / specification _ command (11) -
source
_ location (6) - tee (18)
-
test
_ file (11) -
test
_ file= (11) -
test
_ files (11) -
test
_ files= (11) -
test
_ suite _ file (11) -
test
_ suite _ file= (11) - truncate (62)
- tsort (11)
- 制御構造 (11)
検索結果
先頭5件
-
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 パッケージの名前を返します。