68件ヒット
[1-68件を表示]
(0.043秒)
種類
- インスタンスメソッド (36)
- 文書 (20)
- モジュール関数 (12)
ライブラリ
- benchmark (12)
- uri (12)
-
win32
/ registry (24)
クラス
-
URI
:: Generic (12) -
Win32
:: Registry (24)
モジュール
- Benchmark (12)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) - measure (12)
- name (12)
- userinfo= (12)
検索結果
先頭5件
-
Win32
:: Registry # to _ s (15107.0) -
@todo
...@todo
キーのフルパスを 'HKEY_CURRENT_USER\SOFTWARE\foo\bar'
のような形で返します。... -
URI
:: Generic # userinfo=(s) (6118.0) -
自身の userinfo を設定します。
...自身の userinfo を設定します。
@param s 自身の userinfo を "username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対......Error userinfo と registry を同時に設定した場合に発生します。
例:
require 'uri'
u = URI.parse('http://example.com/')
u.userinfo = 'hoge-san:jfae82kj'
p u.to_s #=> "http://hoge-san:jfae82kj@example.com/"
u.userinfo = 'oreore'
p u.to_s......#=> "http://oreore:jfae82kj@example.com/"
u.userinfo = ['you', 'akakfd']
p u.to_s #=> "http://you:akakfd@example.com/"... -
NEWS for Ruby 2
. 0 . 0 (36.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...たときの名前ではなく呼び出したときの名前を返します。
* 非互換: Object#inspect は #to_s を呼び出さなくなりました。再定義された #to_s を呼び出すためです。
* LoadError
* 追加: LoadError#path ロードできなかったファイル......インスレッドか現在のスレッドである場合、
ThreadError を発生させます
* Time
* 返り値変更:
* Time#to_s now returns US-ASCII encoding instead of BINARY.
* TracePoint
* new class. This class is replacement of set_trace_func.
Easy to use and......the new TLS versions with OpenSSL::SSL:OP_NO_TLSv1_1 and
OpenSSL::SSL::OP_NO_TLSv1_2.
* Added OpenSSL::SSL::SSLContext#renegotiation_cb. A user-defined callback
may be set which gets called whenever a new handshake is negotiated. This
also allows to programmatically decline (cl... -
NEWS for Ruby 2
. 5 . 0 (18.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...11547
* do/end ブロック内部で rescue/else/ensure を書けるようになりました 12906
* 文字列の式展開内部の暗黙の to_s 呼び出しにも refinements が影響するようになりました 13812
=== 組み込みクラスの更新
* Array
* Array#append を......* Net::HTTP::STATUS_CODES を追加。HTTPのステータスコードから文字列表現へのハッシュです。 12935
* Net::HTTP#proxy_user, Net::HTTP#proxy_pass は 環境変数 http_proxy を反映するようになりました。
ただし、システムの環境変数がマル......ml
* https://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... -
Benchmark
. # measure(label = "") { . . . } -> Benchmark :: Tms (12.0) -
与えられたブロックを実行して、経過した時間を Process.#times で計り、 Benchmark::Tms オブジェクトを生成して返します。
...。
Benchmark::Tms オブジェクトには to_s が定義されているので、
基本的には以下のように使います。
//emlist[][ruby]{
require 'benchmark'
puts Benchmark::CAPTION
puts Benchmark.measure { "a"*1_000_000 }
#=>
#
# user system total real
# 1.166667... -
Win32
:: Registry # name (7.0) -
@todo
...@todo
キーのフルパスを 'HKEY_CURRENT_USER\SOFTWARE\foo\bar'
のような形で返します。...