るりまサーチ

最速Rubyリファレンスマニュアル検索!
11162件ヒット [8001-8100件を表示] (0.080秒)

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http post

キーワード

検索結果

<< < ... 79 80 81 82 83 ... > >>

GC (18.0)

GC は Ruby インタプリタの「ゴミ集め(Garbage Collection)」を制御 するモジュールです。

...ないことも多い。そういう部分も含め計測する。
* newrelicのような高度なツールを使うことも考慮する
* http://tmm1.net/ruby21-rgengc/ には
RUBY_GC_HEAP_INIT_SLOTS や RUBY_GC_HEAP_FREE_SLOTS
のチューニングに関する簡単な指針が書...
...放はこの単位で行われる。
この「ページ」はOSのメモリ管理用語であるページとは異なる概念であることに注意。


==== 参考資料

* http://www.atdot.net/~ko1/activities/2014_rubyconf_ph_pub.pdf
* http://tmm1.net/ruby21-rgengc/


@see ObjectSpace...

NEWS for Ruby 2.4.0 (18.0)

NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...2172
* Enumerable#sum を追加 12217
* Enumerable#uniq を追加 11090

* Enumerator::Lazy
* Enumerator::Lazy#chunk_while を追加 https://github.com/ruby/ruby/pull/1186
* Enumerator::Lazy#uniq を追加 11090

* File
* File.empty? を追加 9969

* Float
* Float#ceil...
...6.0.0 に更新 (Ruby 2.4.0)
* Onigmo 6.1.1 に更新 (Ruby 2.4.1)
* 非包含オペレータ(absence operator)をサポートしました https://github.com/k-takata/Onigmo/issues/82

* Regexp/String: Unicodeのバージョンを8.0.0から9.0.0に更新しました 12513

* RubyVM::E...
...72

* net/http
* Net::HTTP.post を追加 12375

* net/ftp
* TLSをサポート 4217
* Net::FTP.new の引数をキーワード引数に対応しました
* Net::FTP#status に省略可能なキーワード引数 pathname を追加
solebox による貢献。https://github.c...

OpenURI::Meta#base_uri -> URI (18.0)

リソースの実際の URI を URI オブジェクトとして返します。 リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

...します。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...
...ます。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
URL.open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...

OptionParser#on(long, *rest) {|v| ...} -> self (18.0)

オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。

...に表示されるオプションの説明と見なします。

//emlist[][ruby]{
opts.on("--protocol VALUE", [:http, :ftp, :https]){|w|
p w
}
# ruby command --protocol=http #=> :http

opts.on("-c", "--charset VALUE", {"jis" => "iso-2022-jp", "sjis" => "shift_jis"}){|w|
p w
}
# ruby command --c...

OptionParser#on(short, *rest) {|v| ...} -> self (18.0)

オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。

...に表示されるオプションの説明と見なします。

//emlist[][ruby]{
opts.on("--protocol VALUE", [:http, :ftp, :https]){|w|
p w
}
# ruby command --protocol=http #=> :http

opts.on("-c", "--charset VALUE", {"jis" => "iso-2022-jp", "sjis" => "shift_jis"}){|w|
p w
}
# ruby command --c...

絞り込み条件を変える

OptionParser#on(short, long, *rest) {|v| ...} -> self (18.0)

オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。

...に表示されるオプションの説明と見なします。

//emlist[][ruby]{
opts.on("--protocol VALUE", [:http, :ftp, :https]){|w|
p w
}
# ruby command --protocol=http #=> :http

opts.on("-c", "--charset VALUE", {"jis" => "iso-2022-jp", "sjis" => "shift_jis"}){|w|
p w
}
# ruby command --c...

REXML::Element#attribute(name, namespace = nil) -> REXML::Attribute | nil (18.0)

name で指定される属性を返します。

...ML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attribute("att") # => att='&lt;'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.a...

REXML::SAX2Listener#start_prefix_mapping(prefix, uri) -> () (18.0)

名前空間の接頭辞(prefix)が導入されたときに呼び出される コールバックメソッドです。

...ソッドです。

以下のようなXMLを処理
<a xmlns:foo="http://foo.example.org/">
<foo:b />
</a>
すると
start_prefix_mapping("foo", "http://foo.example.org/")
start_element(nil, "a", "a", {"xmlns:foo" => "http://foo.example.org/"})
:
end_element(nil, "a", "a")
end_pre...

URI.join(uri_str, *path) -> object (18.0)

文字列 uri_str と path ... を URI として連結して得られる URI オブジェクトを返します。

...ponentError 各要素が適合しない場合に発生します。

@raise URI::InvalidURIError パースに失敗した場合に発生します。

例:

require 'uri'
p URI.join('http://www.ruby-lang.org/', '/ja/man-1.6/')
=> #<URI::HTTP:0x2010017a URL:http://www.ruby-lang.org/ja/man-1.6/>...

URI::Generic#hostname=(s) (18.0)

自身の hostname を設定します。

...しますがそれ
以外は同じ処理を行います。

require 'uri'
u = URI("http://foo/bar")
p u.to_s # => "http://foo/bar"
u.hostname = "::1"
p u.to_s # => "http://[::1]/bar"

@param s 自身の hostname を表す文字列を指定します。

@ra...

絞り込み条件を変える

<< < ... 79 80 81 82 83 ... > >>