ライブラリ
- ビルトイン (814)
- abbrev (11)
- benchmark (55)
- bigdecimal (22)
-
bigdecimal
/ math (66) - cmath (240)
- 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 (240)
- DRb (22)
- Digest (11)
-
ERB
:: DefMethod (11) -
ERB
:: Util (22) - Fiddle (11)
- FileTest (33)
- FileUtils (143)
- Gem (55)
- JSON (44)
- Kernel (209)
- Marshal (44)
- Math (305)
- 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)
- Signal (11)
-
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)
- E (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 (17)
- acos! (6)
- acosh (17)
- acosh! (6)
-
adler32
_ combine (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- atan (28)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
-
basic
_ auth (11) - benchmark (11)
- bm (11)
- bmbm (11)
- caller (11)
-
caller
_ locations (22) - catch (22)
- cbrt (17)
- 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 (28)
- cos! (6)
- cosh (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)
- dump (22)
-
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) - hypot (11)
- info? (11)
- ldexp (11)
- lgamma (11)
- list (11)
- load (11)
-
load
_ mime _ types (11) - log (45)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- 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 (28)
- sin! (6)
- sinh (17)
- sinh! (6)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (32)
- sqrt! (6)
- sub (11)
- success? (11)
- switch (44)
- syscall (11)
- tan (17)
- tan! (6)
- tanh (17)
- 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件
-
ERB
:: Util . # h(s) -> String (18102.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] (9201.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示......します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブジェクトの配......。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 で置き換えられます。Benchmark::... -
ERB
:: DefMethod . # def _ erb _ method(methodname , erb) -> nil (9201.0) -
self に erb のスクリプトをメソッドとして定義します。
...をメソッドとして定義します。
メソッド名は methodname で指定します。
erb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。
@param methodname メソッド名
@param erb 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] (9113.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...た場合に発生します。
例:
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] (9113.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...た場合に発生します。
例:
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 (9101.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...ープします。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 15'
puts "grep #{Shellwords.shellescape(pattern)} file"
# => grep Jan\ 15 file... -
Shellwords
. # shelljoin(array) -> String (9101.0) -
配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。
...エスケープには、Shellwords.#shellescape と
同じ規則が適用されます。
@param array エスケープ対象の文字列を要素とする配列を指定します。
@return エスケープ結果を連結した文字列を返します。
例:
require 'shellwords'
patter......n = 'Jan 15'
file = 'file name with spaces'
puts Shellwords.shelljoin(['grep', pattern, file])
# => grep Jan\ 15 file\ name\ with\ spaces... -
OpenSSL
:: ASN1 . # GraphicString(value) -> OpenSSL :: ASN1 :: GraphicString -> OpenSSL :: ASN1 :: GraphicString (6301.0) -
ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GraphicString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もし... -
DRb
. # thread -> Thread|nil (6201.0) -
プライマリサーバが動作しているスレッドを返します。
プライマリサーバが動作しているスレッドを返します。
プライマリサーバが存在しない場合は nil を返します。
@see DRb.#primary_server -
Kernel
. # Hash(arg) -> Hash (6201.0) -
引数 arg で指定したオブジェクトを to_hash メソッドを呼び出す事で Hash オブジェクトに変換します。nil か [] を指定した場合は空の Hash オブジェクトを返します。
...を to_hash メソッドを呼び出す事で
Hash オブジェクトに変換します。nil か [] を指定した場合は空の
Hash オブジェクトを返します。
@param arg 変換対象のオブジェクトを指定します。
//emlist[例][ruby]{
Hash([]) # => {}
Hash(nil)......# => {}
Hash(key: :value) # => {:key => :value}
Hash([1, 2, 3]) # => TypeError
//}
@raise TypeError 変換できないオブジェクトを指定した場合に発生します。...