1111件ヒット
[201-300件を表示]
(0.115秒)
別のキーワード
ライブラリ
- ビルトイン (360)
- abbrev (12)
- benchmark (60)
- bigdecimal (24)
-
bigdecimal
/ math (72) - cmath (36)
- digest (12)
- drb (24)
- erb (36)
- fiddle (12)
- fileutils (19)
- json (48)
- objspace (48)
- openssl (36)
- shellwords (24)
-
webrick
/ accesslog (12) -
webrick
/ htmlutils (12) -
webrick
/ httpauth (24) -
webrick
/ httpstatus (84) -
webrick
/ httputils (132) - zlib (24)
モジュール
- Abbrev (12)
- Benchmark (60)
- BigMath (96)
- CMath (36)
- DRb (24)
- Digest (12)
-
ERB
:: DefMethod (12) -
ERB
:: Util (24) - Fiddle (12)
- FileTest (36)
- FileUtils (19)
- JSON (48)
- Kernel (132)
- Marshal (48)
- Math (36)
- ObjectSpace (108)
-
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (12) -
Process
:: GID (24) -
Process
:: UID (24) - Shellwords (24)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPStatus (84) -
WEBrick
:: HTTPUtils (132) - Zlib (24)
キーワード
- E (12)
- PI (12)
-
_ _ method _ _ (12) - abbrev (12)
-
adler32
_ combine (12) - atan (12)
-
basic
_ auth (12) - benchmark (12)
- bm (12)
- bmbm (12)
-
caller
_ locations (24) - catch (24)
- cbrt (18)
- cbrt! (6)
- chardev? (12)
- chdir (7)
-
client
_ error? (12) - cos (12)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) -
crc32
_ combine (12) -
def
_ erb _ method (12) - dequote (12)
- dlopen (12)
- dump (24)
-
each
_ object (48) -
egd
_ bytes (12) - error? (12)
- escape (24)
- escape8bit (12)
-
escape
_ path (12) - exp (12)
- format (12)
- generate (12)
- gsub (12)
- here? (12)
- hexencode (12)
-
html
_ escape (12) - info? (12)
- load (12)
-
load
_ mime _ types (12) - log (48)
- log! (12)
- measure (12)
-
mime
_ type (12) -
parse
_ header (12) -
parse
_ range _ header (12) -
pbkdf2
_ hmac (12) -
pbkdf2
_ hmac _ sha1 (12) -
pretty
_ generate (12) -
pretty
_ unparse (12) -
proxy
_ basic _ auth (12) - putc (12)
- quote (12)
-
re
_ exchangeable? (24) -
reachable
_ objects _ from (12) - realtime (12)
-
reason
_ phrase (12) - redirect? (12)
- restore (12)
-
server
_ error? (12) -
setup
_ params (12) - shellsplit (12)
- shellwords (12)
- sin (12)
-
split
_ header _ value (12) - sprintf (12)
- sqrt (12)
- sub (12)
- success? (12)
- switch (24)
- thread (12)
- unescape (12)
- unparse (12)
-
untrace
_ var (12) - uptodate? (12)
-
world
_ readable? (12) -
world
_ writable? (12)
検索結果
先頭5件
-
ObjectSpace
. # count _ objects _ size(result _ hash = nil) -> Hash (9301.0) -
型ごとのオブジェクトサイズをバイト単位で格納したハッシュを返します。
...イト単位で格納したハッシュを返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。プローブ効......に T_DATA の合計値は正しくないでしょう。
//emlist[例][ruby]{
ObjectSpace.count_objects_size
# => {:TOTAL=>1461154, :T_CLASS=>158280, :T_MODULE=>20672, :T_STRING=>527249, ...}
//}
@raise TypeError result_hash にハッシュ以外を指定した時に発生します。
戻り値......のハッシュは処理系に依存します。これは将来変更になるかもしれません。
本メソッドは C Ruby 以外では動作しません。... -
ObjectSpace
. # count _ tdata _ objects(result _ hash = nil) -> Hash (9301.0) -
T_DATA の種類ごとにオブジェクトの数を格納したハッシュを返します。
...t_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。プローブ効果を避けるために使用します。
@raise TypeError result_hash......Ruby プログラマ向けのメソッドではありません。パフォー
マンスに興味のある C Ruby の開発者向けのものです。
//emlist[例][ruby]{
ObjectSpace.count_tdata_objects
# => {RubyVM::InstructionSequence=>504, :parser=>5, :barrier=>6,
# :mutex=>6, Proc=>60, Ruby......VM::Env=>57, Mutex=>1, Encoding=>99,
# ThreadGroup=>1, Binding=>1, Thread=>1, RubyVM=>1, :iseq=>1,
# Random=>1, ARGF.class=>1, Data=>1, :autoload=>3, Time=>2}
//}
現在のバージョンでは、戻り値のキーはクラスオブジェクトかシンボルのオブ
ジェクトです。... -
Abbrev
. # abbrev(words , pattern = nil) -> Hash (9207.0) -
文字列の配列から一意に決まる短縮形を計算し、 短縮形をキー、元の文字列を値とするハッシュを返します。
...re 'abbrev'
# words に同じ文字列が含まれている場合は
# 以下のようにその文字列しか返しません。
pp Abbrev.abbrev(%w[ruby ruby]).sort
# => [["ruby", "ruby"]]
# 空白が含まれていても適切に処理します。
pp Abbrev.abbrev(['ru by'])......."ru by"],
# ["ru", "ru by"],
# ["ru ", "ru by"],
# ["ru b", "ru by"],
# ["ru by", "ru by"]]
# sort していない例
p %w[ruby rubyist].abbrev
#=> {"ruby" => "ruby",
# "rubyi" => "rubyist",
# "rubyis" => "rubyist",
# "rubyis......t" => "rubyist"}... -
Benchmark
. # bm(label _ width = 0 , *labels) {|rep| . . . } -> [Benchmark :: Tms] (9201.0) -
Benchmark.#benchmark メソッドの引数を簡略化したものです。
...
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドと同様に働きます。
@param label_width ラベルの幅を指定します。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定し......ます。
//emlist[][ruby]{
require 'benchmark'
n = 50000
Benchmark.bm do |x|
x.report { for i in 1..n; a = "1"; end }
x.report { n.times do ; a = "1"; end }
x.report { 1.upto(n) do ; a = "1"; end }
end
#=>
#
# user system total real
# 1.033333 0.016667 1.016667 (......1.483333 ( 0.694605)
# 1.516667 0.000000 1.516667 ( 0.711077)
//}
以下のようにも書けます。
//emlist[][ruby]{
require 'benchmark'
n = 50000
Benchmark.bm(7) do |x|
x.report("for:") { for i in 1..n; a = "1"; end }
x.report("times:") { n.times do ; a = "1"; end }
x.repo... -
DRb
. # here?(uri) -> bool (9201.0) -
uri がカレントサーバに紐付けられたものであれば真を返します。
...uri がカレントサーバに紐付けられたものであれば真を返します。
@see DRb.#current_server... -
DRb
. # thread -> Thread|nil (9201.0) -
プライマリサーバが動作しているスレッドを返します。
...プライマリサーバが動作しているスレッドを返します。
プライマリサーバが存在しない場合は nil を返します。
@see DRb.#primary_server... -
Shellwords
. # shellsplit(line) -> [String] (9125.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文......た場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D E F", "G,H I"]... -
Shellwords
. # shellwords(line) -> [String] (9125.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文......た場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D E F", "G,H I"]... -
ERB
:: Util . # html _ escape(s) -> String (9102.0) -
文字列 s を HTML用にエスケープした文字列を返します。
... HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby......]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}...