1928件ヒット
[1-100件を表示]
(0.180秒)
ライブラリ
- ビルトイン (583)
- abbrev (11)
- benchmark (55)
- bigdecimal (22)
-
bigdecimal
/ math (66) - cmath (138)
- digest (11)
- drb (22)
- erb (33)
- fiddle (11)
- fileutils (143)
- json (44)
- mathn (8)
- objspace (44)
- open3 (154)
- openssl (66)
- readline (11)
- rubygems (55)
- shellwords (44)
-
webrick
/ accesslog (11) -
webrick
/ htmlutils (11) -
webrick
/ httpauth (22) -
webrick
/ httpstatus (77) -
webrick
/ httputils (121) -
win32
/ registry (132) -
win32
/ resolv (11) - zlib (22)
クラス
-
Win32
:: Resolv (11)
モジュール
- Abbrev (11)
- Benchmark (55)
- BigMath (88)
- CMath (138)
- DRb (22)
- Digest (11)
-
ERB
:: DefMethod (11) -
ERB
:: Util (22) - Fiddle (11)
- FileTest (33)
- FileUtils (143)
- Gem (55)
- JSON (44)
- Kernel (209)
- Marshal (22)
- Math (107)
- ObjectSpace (99)
- Open3 (154)
-
OpenSSL
:: ASN1 (33) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (11) - Process (55)
-
Process
:: GID (55) -
Process
:: UID (55) - Readline (11)
- Shellwords (44)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPStatus (77) -
WEBrick
:: HTTPUtils (121) -
Win32
:: Registry :: API (132) - Zlib (22)
キーワード
- CloseKey (11)
- CreateKey (11)
- DeleteKey (11)
- DeleteValue (11)
- EnumKey (11)
- EnumValue (11)
- FlushKey (11)
- GraphicString (22)
- Hash (11)
- OpenKey (11)
- PI (11)
- QueryInfoKey (11)
- QueryValue (11)
- SetValue (11)
-
_ _ method _ _ (11) - abbrev (11)
- acos (6)
- acosh (6)
-
adler32
_ combine (11) - asin (6)
- asinh (6)
- atan (17)
- atan2 (6)
- atanh (6)
-
basic
_ auth (11) - benchmark (11)
- bm (11)
- bmbm (11)
- caller (11)
-
caller
_ locations (22) - catch (22)
- cbrt (6)
-
change
_ privilege (22) - chardev? (11)
- chdir (22)
- check (11)
- chmod (11)
-
chmod
_ R (11) - chomp (11)
- chop (11)
- chown (11)
-
chown
_ R (11) -
clear
_ paths (11) -
client
_ error? (11) -
clock
_ gettime (11) - cos (17)
- cosh (6)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
crc32
_ combine (11) - daemon (11)
-
def
_ erb _ method (11) - dequote (11)
- detach (11)
- dlopen (11)
-
each
_ object (44) -
egd
_ bytes (11) - erf (11)
- erfc (11)
- error? (11)
- escape (22)
- escape8bit (11)
-
escape
_ path (11) - exp (28)
- exp! (6)
- format (11)
- frexp (11)
- gamma (11)
- generate (11)
-
get
_ hosts _ path (11) - getpriority (11)
- gsub (11)
- here? (11)
- hexencode (11)
-
html
_ escape (11) - info? (11)
- ldexp (11)
- lgamma (11)
- load (11)
-
load
_ mime _ types (11) - log (45)
- log! (12)
- log10 (6)
- log2 (6)
-
marshal
_ version (11) - measure (11)
-
mime
_ type (11) - mkpath (11)
-
parse
_ header (11) -
parse
_ range _ header (11) - path (11)
-
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (11) -
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen2 (22)
- popen2e (22)
- popen3 (22)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
proxy
_ basic _ auth (11) - putc (11)
- quote (11)
-
re
_ exchange (22) -
re
_ exchangeable? (22) -
reachable
_ objects _ from (11) - readline (11)
- realtime (11)
-
reason
_ phrase (11) - redirect? (11)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - restore (11)
- rsqrt (4)
-
server
_ error? (11) -
set
_ home (11) -
set
_ paths (11) - setpriority (11)
-
setup
_ params (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (11)
- sin (17)
- sinh (6)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (21)
- sub (11)
- success? (11)
- switch (44)
- syscall (11)
- tan (6)
- tanh (6)
- thread (11)
- throw (11)
- touch (11)
-
trace
_ var (22) - traverse (11)
- unescape (11)
- unparse (11)
-
untrace
_ var (11) - uptodate? (11)
-
world
_ readable? (11) -
world
_ writable? (11)
検索結果
先頭5件
-
BigMath
. # E(prec) -> BigDecimal (21154.0) -
自然対数の底 e を prec で指定した精度で計算します。
... e を prec で指定した精度で計算します。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::E(2) #=> 0.27e1
puts BigMath::E(4) #=> 0.2718e1
puts BigMath......::E(10) #=> 0.2718281828e1
//}... -
ERB
:: Util . # h(s) -> String (21102.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...s を 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?
//}... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (18401.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示......指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブジェクト......user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time... -
ERB
:: DefMethod . # def _ erb _ method(methodname , erb) -> nil (18301.0) -
self に erb のスクリプトをメソッドとして定義します。
...self に erb のスクリプトをメソッドとして定義します。
メソッド名は methodname で指定します。
erb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。
@param methodname メソッド名
@param er......b ERBインスタンスもしくはERBソースファイル名
例:
require 'erb'
class Writer
extend ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
end
...
puts writer.to_html... -
Shellwords
. # shellsplit(line) -> [String] (18225.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文......す。
@return 分割結果の各文字列を要素とする配列を返します。
@raise ArgumentError 引数の中に対でないシングルクォートまたはダブル
クォートが現れた場合に発生します。
例:
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] (18225.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文......す。
@return 分割結果の各文字列を要素とする配列を返します。
@raise ArgumentError 引数の中に対でないシングルクォートまたはダブル
クォートが現れた場合に発生します。
例:
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
. # shellescape(str) -> String (18201.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 1......5'
puts "grep #{Shellwords.shellescape(pattern)} file"
# => grep Jan\ 15 file... -
Shellwords
. # shelljoin(array) -> String (18201.0) -
配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。
...、Bourne シェルのコマンドライン中で安全に
使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド
ライン文字列を生成します。
個々の配列要素に対するエスケープには、Shellwords.#shellescape と
同じ......る配列を指定します。
@return エスケープ結果を連結した文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 15'
file = 'file name with spaces'
puts Shellwords.shelljoin(['grep', pattern, file])
# => grep Jan\ 15 file\ name\ with\ spaces... -
WEBrick
:: HTTPStatus . # server _ error?(code) -> bool (15301.0) -
指定された整数が表すステータスコードが 5XX である場合に true を返します。そうでない場合に false を返します。
...指定された整数が表すステータスコードが 5XX である場合に
true を返します。そうでない場合に false を返します。
@param code HTTP のステータスコードを表す整数か文字列を指定します。... -
WEBrick
:: HTTPUtils . # parse _ range _ header(ranges _ specifier) (15301.0) -
@todo ???
...@todo ???
@param ranges_specifier...