1934件ヒット
[1-100件を表示]
(0.119秒)
ライブラリ
- ビルトイン (588)
- abbrev (12)
- benchmark (48)
- bigdecimal (24)
-
bigdecimal
/ math (72) - cmath (78)
- digest (12)
- drb (24)
- erb (36)
- fiddle (12)
- fileutils (156)
- json (48)
- mathn (8)
- objspace (48)
- open3 (168)
- openssl (72)
- readline (12)
- rubygems (24)
- shellwords (48)
-
webrick
/ accesslog (12) -
webrick
/ htmlutils (12) -
webrick
/ httpauth (24) -
webrick
/ httpstatus (84) -
webrick
/ httputils (132) -
win32
/ registry (144) -
win32
/ resolv (12) - zlib (24)
クラス
-
Win32
:: Resolv (12)
モジュール
- Abbrev (12)
- Benchmark (48)
- BigMath (96)
- CMath (78)
- DRb (24)
- Digest (12)
-
ERB
:: DefMethod (12) -
ERB
:: Util (24) - Fiddle (12)
- FileTest (36)
- FileUtils (156)
- Gem (24)
- JSON (48)
- Kernel (204)
- Marshal (48)
- Math (92)
- ObjectSpace (72)
- Open3 (168)
-
OpenSSL
:: ASN1 (36) -
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (12) - Process (60)
-
Process
:: GID (60) -
Process
:: UID (60) - Readline (12)
- Shellwords (48)
- Signal (12)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPStatus (84) -
WEBrick
:: HTTPUtils (132) -
Win32
:: Registry :: API (144) - Zlib (24)
キーワード
- CloseKey (12)
- CreateKey (12)
- DeleteKey (12)
- DeleteValue (12)
- E (12)
- EnumKey (12)
- EnumValue (12)
- FlushKey (12)
- GraphicString (24)
- OpenKey (12)
- PI (12)
- QueryInfoKey (12)
- QueryValue (12)
- SetValue (12)
-
_ _ method _ _ (12) - abbrev (12)
-
adler32
_ combine (12) - asin (18)
- asin! (6)
- asinh (18)
- asinh! (6)
- atan (12)
-
basic
_ auth (12) - benchmark (12)
- bm (12)
- bmbm (12)
- caller (12)
-
caller
_ locations (24) - catch (24)
- cbrt (6)
-
change
_ privilege (24) - chardev? (12)
- chdir (24)
- check (12)
- chmod (12)
-
chmod
_ R (12) - chomp (12)
- chop (12)
- chown (12)
-
chown
_ R (12) -
clear
_ paths (12) -
client
_ error? (12) -
clock
_ gettime (12) - cos (12)
-
count
_ nodes (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) -
crc32
_ combine (12) - daemon (12)
-
def
_ erb _ method (12) - dequote (12)
- detach (12)
- dlopen (12)
- dump (24)
-
each
_ object (24) -
egd
_ bytes (12) - error? (12)
- escape (24)
- escape8bit (12)
-
escape
_ path (12) - exp (18)
- format (12)
- frexp (12)
- gamma (12)
- generate (12)
-
get
_ hosts _ path (12) - getpriority (12)
- gsub (12)
- here? (12)
- hexencode (12)
-
html
_ escape (12) - info? (12)
- lgamma (12)
- list (12)
- load (12)
-
load
_ mime _ types (12) - log (24)
-
marshal
_ version (12) -
mime
_ type (12) - mkpath (12)
-
parse
_ header (12) -
parse
_ range _ header (12) -
pbkdf2
_ hmac (12) -
pbkdf2
_ hmac _ sha1 (12) -
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - popen2 (24)
- popen2e (24)
- popen3 (24)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
proxy
_ basic _ auth (12) - quote (12)
-
re
_ exchange (24) -
re
_ exchangeable? (24) -
reachable
_ objects _ from (12) - readline (12)
- realtime (12)
-
reason
_ phrase (12) - redirect? (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - restore (12)
- rsqrt (4)
-
server
_ error? (12) - setpriority (12)
-
setup
_ params (12) - shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
- sin (30)
- sin! (6)
- sinh (18)
- sinh! (6)
-
split
_ header _ value (12) - sprintf (12)
- sqrt (22)
- sub (12)
- success? (12)
- switch (48)
- syscall (12)
- thread (12)
- throw (12)
- touch (12)
-
trace
_ var (24) - traverse (12)
- unescape (12)
- unparse (12)
-
untrace
_ var (12) - uptodate? (12)
-
world
_ readable? (12) -
world
_ writable? (12)
検索結果
先頭5件
-
ERB
:: Util . # h(s) -> String (21202.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?
//}... -
Shellwords
. # shelljoin(array) -> String (15301.0) -
配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。
...Shellwords.#shellescape と
同じ規則が適用されます。
@param array エスケープ対象の文字列を要素とする配列を指定します。
@return エスケープ結果を連結した文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 15'
file =......'file name with spaces'
puts Shellwords.shelljoin(['grep', pattern, file])
# => grep Jan\ 15 file\ name\ with\ spaces... -
Shellwords
. # shellsplit(line) -> [String] (15225.0) -
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"]... -
WEBrick
:: HTTPAuth . # basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (15201.0) -
Basic 認証を行うためのメソッドです。
...Basic 認証を行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価結果が偽......Brick::HTTPRequest オブジェクトを指定します。
@param res WEBrick::HTTPResponse オブジェクトを指定します。
@param realm 認証のレルムを文字列で指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。
require......'webrick'
srv.mount_proc('/basic_auth') {|req, res|
HTTPAuth.basic_auth(req, res, "WEBrick's realm") {|user, pass|
user == 'webrick' && pass == 'supersecretpassword'
}
res.body = "hoge"
}... -
WEBrick
:: HTTPAuth . # proxy _ basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (15201.0) -
プロクシの Basic 認証行うためのメソッドです。
...プロクシの Basic 認証行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価......エストを表す WEBrick::HTTPRequest オブジェクトを指定します。
@param res WEBrick::HTTPResponse オブジェクトを指定します。
@param realm 認証のレルムを文字列で指定します。
@raise WEBrick::HTTPStatus::ProxyAuthenticationRequired 認証に失敗した... -
OpenSSL
:: ASN1 . # GraphicString(value) -> OpenSSL :: ASN1 :: GraphicString -> OpenSSL :: ASN1 :: GraphicString (12601.0) -
ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを 生成します。
...hicString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GraphicString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICI......T)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
FileUtils
. # chdir(dir , options = {}) {|dir| . . . . } -> nil (12401.0) -
プロセスのカレントディレクトリを dir に変更します。
...を dir に変更します。
ブロックとともに呼び出された時はブロック終了後に
元のディレクトリに戻ります。
@param dir ディレクトリを指定します。
@param options :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby......]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}... -
FileUtils
. # chdir(dir , options = {}) {|dir| . . . . } -> object (12401.0) -
プロセスのカレントディレクトリを dir に変更します。
...を dir に変更します。
ブロックとともに呼び出された時はブロック終了後に
元のディレクトリに戻ります。
@param dir ディレクトリを指定します。
@param options :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby......]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}... -
OpenSSL
:: ASN1 . # GraphicString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GraphicString (12401.0) -
ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを 生成します。
...hicString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GraphicString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICI......T)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
Shellwords
. # shellwords(line) -> [String] (12325.0) -
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"]...