るりまサーチ

最速Rubyリファレンスマニュアル検索!
106件ヒット [1-100件を表示] (0.083秒)
トップページ > クエリ:IO[x] > クエリ:p[x] > クエリ:reset[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

検索結果

<< 1 2 > >>

Gem::RemoteFetcher#reset(connection) -> Net::HTTP (18301.0)

与えられたコネクションをリセットします。

...与えられたコネクションをリセットします。

@param connection コネクションを指定します。...

Thread#priority -> Integer (12206.0)

スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。

...レッドの
p
riority を引き継ぎます。

@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 を引き継ぎます。

...レッドの
p
riority を引き継ぎます。

@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("")

p
rintf "%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#...

絞り込み条件を変える

<< 1 2 > >>