別のキーワード
種類
- 定数 (55)
- インスタンスメソッド (44)
- 文書 (7)
ライブラリ
- ビルトイン (22)
-
rubygems
/ remote _ fetcher (11) -
webrick
/ httpstatus (55) - zlib (11)
クラス
-
Gem
:: RemoteFetcher (11) - Thread (22)
-
Zlib
:: Deflate (11)
モジュール
-
WEBrick
:: HTTPStatus (55)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (7) -
RC
_ EXPECTATION _ FAILED (11) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (11) -
RC
_ PRECONDITION _ FAILED (11) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (11) - priority (11)
- priority= (11)
-
set
_ dictionary (11)
検索結果
先頭5件
-
Gem
:: RemoteFetcher # reset(connection) -> Net :: HTTP (18301.0) -
与えられたコネクションをリセットします。
...与えられたコネクションをリセットします。
@param connection コネクションを指定します。... -
Thread
# priority -> Integer (12206.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
...レッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b =......Thread.new do
loop { count2 += 1 }
end
b.priority = -2
count1 = count2 = 0 # reset
sleep 1 # => 1
count1 # => 13809431
count2 # => 11571921
//}... -
Thread
# priority=(val) (12206.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
...レッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b =......Thread.new do
loop { count2 += 1 }
end
b.priority = -2
count1 = count2 = 0 # reset
sleep 1 # => 1
count1 # => 13809431
count2 # => 11571921
//}... -
WEBrick
:: HTTPStatus :: RC _ EXPECTATION _ FAILED (9207.0) -
HTTP のステータスコードを表す整数です。
...HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500... -
WEBrick
:: HTTPStatus :: RC _ HTTP _ VERSION _ NOT _ SUPPORTED (9207.0) -
HTTP のステータスコードを表す整数です。
...HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500... -
WEBrick
:: HTTPStatus :: RC _ PRECONDITION _ FAILED (9207.0) -
HTTP のステータスコードを表す整数です。
...HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500... -
WEBrick
:: HTTPStatus :: RC _ PROXY _ AUTHENTICATION _ REQUIRED (9207.0) -
HTTP のステータスコードを表す整数です。
...HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500... -
Zlib
:: Deflate # set _ dictionary(string) -> String (6122.0) -
圧縮に用いる辞書を指定します。string を返します。 このメソッドは Zlib::Deflate.new, Zlib::ZStream#reset を呼び出した直後にのみ有効です。詳細は zlib.h を参照して下さい。
...指定します。string を返します。
このメソッドは Zlib::Deflate.new, Zlib::ZStream#reset
を呼び出した直後にのみ有効です。詳細は zlib.h を参照して下さい。
@param string 辞書に用いる文字列を指定します。詳しくは zlib.h を参照してく......)
dez = Zlib::Deflate.new
comp_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 = '......sset = [ dict, 'taeagbamike', '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)... -
WEBrick
:: HTTPStatus :: RC _ NON _ AUTHORITATIVE _ INFORMATION (6107.0) -
HTTP のステータスコードを表す整数です。
...HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500... -
NEWS for Ruby 2
. 5 . 0 (48.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...の更新
* Array
* Array#append を追加 12746
* Array#prepend を追加 12746
* Data
* 非推奨になりました。C拡張のベースクラスでしたが、Rubyレベルに公開するのをやめました。3072
* Exception
* Exception#full_message を追加 14141 [......というキーワード引数を追加しました 13056
* Dir.chdir (ブロックなしで呼び出した場合), Dir.open, Dir.new, Dir.mkdir, Dir.rmdir,
Dir.empty? はGVLを解放するようになりました
* Dir.children を追加 11302
* Dir.each_child を追加 11302......ttps://blog.rubygems.org/2017/08/27/2.6.13-released.html
* securerandom
* SecureRandom.alphanumeric を追加
* set
* Set#to_s を Set#inspect の別名として追加 13676
* Set#=== を Set#include? の別名として追加 13801
* Set#reset 6589
* stringio
* StringIO#...