616件ヒット
[1-100件を表示]
(0.137秒)
ライブラリ
- ビルトイン (99)
- csv (132)
- forwardable (11)
-
irb
/ cmd / pushws (22) - json (22)
-
net
/ http (11) - rake (22)
- rbconfig (11)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) - shell (30)
-
shell
/ builtin-command (36) -
shell
/ command-processor (24) -
shell
/ filter (30) - thread (4)
- timeout (19)
- zlib (66)
クラス
- Array (7)
- CSV (132)
- Data (2)
-
Enumerator
:: ArithmeticSequence (6) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) - Hash (11)
- IO (33)
-
IRB
:: ExtendCommand :: PushWorkspace (11) -
Rake
:: TaskArguments (11) - Range (11)
- Shell (30)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - Thread (11)
-
Thread
:: Queue (11) -
Thread
:: SizedQueue (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipWriter (22) -
Zlib
:: Inflate (11) -
Zlib
:: ZStream (22)
モジュール
- FileUtils (11)
- Forwardable (11)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
Net
:: HTTPHeader (11) - RbConfig (11)
- Timeout (19)
キーワード
- AppendFile (6)
- AppendIO (6)
-
DEFAULT
_ OPTIONS (11) -
MAKEFILE
_ CONFIG (11) - Marshal フォーマット (11)
- PushWorkspace (11)
- Rubyの起動 (11)
- [] (18)
- append (18)
-
close
_ read (11) -
close
_ write (11) -
deconstruct
_ keys (2) - execute (11)
- fetch (11)
- filter (33)
-
find
_ gems (11) - finish (22)
- finished? (11)
- flush (33)
- generate (11)
-
handle
_ interrupt (11) - hash (17)
- input= (12)
-
instance
_ delegate (11) - invert (11)
-
json
_ create (11) - mkdir (18)
- new (23)
- open (44)
- parse (22)
-
ruby 1
. 9 feature (11) - shift (33)
-
spec
_ predecessors (11) -
stream
_ end? (11) - test (18)
- timeout (19)
-
to
_ json (11) -
unalias
_ command (6) - unshift (7)
-
with
_ defaults (11) - | (6)
- 制御構造 (11)
検索結果
先頭5件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (24131.0) -
与えられたコマンドを実行します。
...参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system... -
Shell
:: AppendFile (15000.0) -
-
Shell
:: AppendIO (15000.0) -
-
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (12700.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Zlib
:: Inflate # finish -> String (12306.0) -
展開ストリームを終了します。
...ゴミデータ) を返します。
Zlib::ZStream#finished? が真でない時に finish を呼ぶと
例外が発生します。
展開ストリームは圧縮データ内に終了コードを発見した時点で
自ら終了するため、明示的に finish を呼ぶ必要は必ずしも
あり......ませんが、このメソッドは圧縮データが正しく終了しているかを
確認するのに便利です。
require 'zlib'
cstr = "x\234\313\310OOUH+MOTH\315K\001\000!\251\004\276"
inz = Zlib::Inflate.new
inz << cstr
p inz.finish #=> "hoge fuga end"... -
Zlib
:: ZStream # finished? -> bool (12201.0) -
ストリームへの入力が終了している時に真を返します。
ストリームへの入力が終了している時に真を返します。 -
Shell
:: AppendFile # input=(filter) (12100.0) -
@todo
@todo -
Shell
:: AppendIO # input=(filter) (12100.0) -
@todo
@todo -
IRB
:: ExtendCommand :: PushWorkspace (12000.0) -
irb 中の irb_push_workspace コマンドのための拡張を定義したクラスです。
...irb 中の irb_push_workspace コマンドのための拡張を定義したクラスです。... -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (9700.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (9700.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Zlib
:: Deflate # flush(flush = Zlib :: SYNC _ FLUSH) -> String (9442.0) -
deflate('', flush) と同じです。flush が 省略された時は Zlib::SYNC_FLUSH が使用されます。 このメソッドはスクリプトの可読性のために提供されています。
..., flush) と同じです。flush が
省略された時は Zlib::SYNC_FLUSH が使用されます。
このメソッドはスクリプトの可読性のために提供されています。
@param flush Zlib::NO_FLUSH Zlib::SYNC_FLUSH Zlib::FULL_FLUSH などを指定します。
require 'zlib'......def case1
dez = Zlib::Deflate.new
comp_str = dez.deflate('hoge')
comp_str << dez.deflate(' fuga')
comp_str << dez.deflate(' end', Zlib::FINISH)
dez.close
p comp_str
p Zlib::Inflate.inflate(comp_str)
end
def case2
dez = Zlib::Deflate.new
comp_str = dez.deflat......< dez.flush
comp_str << dez.deflate(' fuga')
comp_str << dez.flush
comp_str << dez.deflate(' end', Zlib::FINISH)
dez.close
p comp_str
p Zlib::Inflate.inflate(comp_str)
end
case1
case2
#=> "x\234\313\310OOUH+MOTH\315K\001\000!\251\004\276"
#=> "hoge fuga end"
#=>... -
Zlib
:: GzipWriter # flush(flush = Zlib :: SYNC _ FLUSH) -> self (9412.0) -
まだ書き出されていないデータをフラッシュします。
...sh は Zlib::Deflate#deflate と同じです。
省略時は Zlib::SYNC_FLUSH が使用されます。
flush に Zlib::NO_FLUSH を指定することは無意味です。
@param flush Zlib::NO_FLUSH Zlib::SYNC_FLUSH Zlib::FULL_FLUSH などを指定します。
require 'zlib'
def case1
fi......fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.puts "fuga"
gz.puts "ugo"
}
p File.read(filename)
end
def case2
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz......|
gz.puts "fuga"
gz.flush
gz.puts "ugo\n"
gz.flush
}
p File.read(filename)
end
case1
#=> "\037\213\b\000p\257pH\002\003K+MO\344*M\317\347\002\000<\326\000\371\t\000\000\000"
case2
#=> "\037\213\b\000p\257pH\002\003J+MO\344\002\000\000\000\377\377*M\317\347...