442件ヒット
[1-100件を表示]
(0.083秒)
別のキーワード
ライブラリ
- ビルトイン (93)
-
cgi
/ html (120) -
fiddle
/ import (12) - getoptlong (12)
-
io
/ console (24) - logger (1)
-
net
/ ftp (24) -
net
/ http (24) -
net
/ imap (12) - openssl (24)
- rake (24)
-
rubygems
/ package / tar _ writer (24) - stringio (24)
- zlib (24)
クラス
-
ARGF
. class (12) - Array (21)
-
Encoding
:: Converter (24) - File (12)
-
Gem
:: Package :: TarWriter (24) - GetoptLong (12)
- IO (24)
-
Logger
:: Application (1) -
Net
:: FTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP :: ContentDisposition (12) -
OpenSSL
:: SSL :: SSLContext (24) -
Rake
:: Application (12) -
RubyVM
:: InstructionSequence (12) - String (12)
- StringIO (24)
-
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (120) -
Fiddle
:: Importer (12) -
Rake
:: TaskManager (12)
キーワード
-
add
_ file _ simple (24) - bind (12)
- binmode (12)
-
body
_ stream (12) -
body
_ stream= (12) -
file
_ field (24) -
get
_ option (12) - length (12)
- pack (21)
- param (12)
-
password
_ field (24) -
primitive
_ convert (24) -
scrolling
_ list (24) -
session
_ cache _ size (12) -
session
_ cache _ size= (12) -
set
_ dictionary (24) -
set
_ log (1) - storbinary (24)
-
synthesize
_ file _ task (12) -
text
_ field (24) -
to
_ a (12) - truncate (12)
- unpack (12)
- winsize (12)
- winsize= (12)
検索結果
先頭5件
-
IO
# winsize=(size) (27208.0) -
端末のサイズを設定します。
...端末のサイズを設定します。
@param size [rows, columns] を数値の配列で指定します。
効果はプラットフォームや環境に依存します。... -
IO
# winsize -> [Integer , Integer] (27101.0) -
端末のサイズを [rows, columns] で返します。
端末のサイズを [rows, columns] で返します。 -
StringIO
# size -> Integer (18102.0) -
文字列の長さを返します。
文字列の長さを返します。 -
OpenSSL
:: SSL :: SSLContext # session _ cache _ size=(size) (12321.0) -
自身が保持可能なセッションキャッシュのサイズを指定します。
...を指定します。
size に 0 を渡すと制限なしを意味します。
デフォルトは 1024*20 で、20000 セッションまでキャッシュを保持できます。
@param size セッションキャッシュのサイズ(整数値)
@see OpenSSL::SSL::SSLContext#session_cache_size... -
OpenSSL
:: SSL :: SSLContext # session _ cache _ size -> Integer (12208.0) -
自身が保持可能なセッションキャッシュのサイズを返します。
...自身が保持可能なセッションキャッシュのサイズを返します。
@see OpenSSL::SSL::SSLContext#session_cache_size=... -
Rake
:: Application # options -> OpenStruct (9113.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
...ンを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_sta......ts=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>
end
//}... -
Zlib
:: Deflate # set _ dictionary(string) -> String (6119.0) -
圧縮に用いる辞書を指定します。string を返します。 このメソッドは Zlib::Deflate.new, Zlib::ZStream#reset を呼び出した直後にのみ有効です。詳細は zlib.h を参照して下さい。
..._str = dez.deflate(str)
comp_str << dez.finish
comp_str.size
end
def case2(str, dict)
dez = Zlib::Deflate.new
p dez.set_dictionary(dict)
comp_str = dez.deflate(str)
comp_str << dez.finish
comp_str.size
end
i = 10
dict = 'hoge_fuga_ugougo'
sset = [ dict, 'ta......eagbamike', 'ugotagma', 'fugebogya' ]
g = [ 0, 1, 1, 1, 0, 0, 0, 3, 3, 3, 0, 0, 1, 1, 0, 0, 0, 1, 2, 2, 0, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0]
str = (1..i).collect{|m| t = rand(g.size); sset.at(g[t])}.join("")
printf "%d normal:%d, dict:%d\n", i, case1(str), case2(str, dict)... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (6107.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...by]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file => []>
end
//}... -
Zlib
:: Inflate # set _ dictionary(string) -> String (6107.0) -
展開に用いる辞書を指定します。string を返します。 このメソッドは Zlib::NeedDict 例外が発生した直後のみ 有効です。詳細は zlib.h を参照して下さい。
...e.new
dez.set_dictionary(dict)
comp_str = dez.deflate(str)
comp_str << dez.finish
comp_str.size
inz = Zlib::Inflate.new
begin
inz.inflate(comp_str)
rescue Zlib::NeedDict
end
# 展開に用いる辞書が必要です。
inz.set_dictionary(dict)
p inz...