ライブラリ
- ビルトイン (156)
- abbrev (12)
- cmath (24)
- objspace (36)
- openssl (12)
- rubygems (12)
- shellwords (48)
- timeout (21)
-
webrick
/ accesslog (12) -
webrick
/ httputils (24) -
win32
/ registry (12)
モジュール
- Abbrev (12)
- CMath (24)
- Gem (12)
- Kernel (60)
- Marshal (48)
- Math (24)
- ObjectSpace (48)
-
OpenSSL
:: PKCS5 (12) - Shellwords (48)
- Signal (12)
- Timeout (21)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTTPUtils (24) -
Win32
:: Registry :: API (12)
キーワード
- FlushKey (12)
- Hash (12)
- abbrev (12)
- acosh (18)
- acosh! (6)
- cosh (18)
- cosh! (6)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - dump (24)
- list (12)
- load (12)
-
load
_ mime _ types (12) -
marshal
_ version (12) -
parse
_ header (12) -
pbkdf2
_ hmac _ sha1 (12) - restore (12)
-
setup
_ params (12) - shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
- spawn (48)
- timeout (21)
検索結果
先頭5件
-
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... -
Shellwords
. # shellsplit(line) -> [String] (9101.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... -
Shellwords
. # shellwords(line) -> [String] (9101.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... -
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 変換できないオブジェクトを指定した場合に発生します。... -
CMath
. # acosh!(x) -> Float (6101.0) -
実数 x の逆双曲線余弦関数の値を返します。Math.#acosh のエイリアスです。
...実数 x の逆双曲線余弦関数の値を返します。Math.#acosh のエイリアスです。
@param x x >= 1 の範囲の実数。
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外の実数を指定した場合に発生し......ます。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#acosh... -
CMath
. # acosh(z) -> Float | Complex (6101.0) -
z の逆双曲線余弦関数の値を返します。
z の逆双曲線余弦関数の値を返します。
@param z 数値
@raise TypeError z に数値以外を指定した場合に発生します。 -
CMath
. # cosh!(x) -> Float (6101.0) -
実数 x の双曲線余弦関数の値を返します。Math.#cosh のエイリアスで す。
...実数 x の双曲線余弦関数の値を返します。Math.#cosh のエイリアスで
す。
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#cosh... -
CMath
. # cosh(z) -> Float | Complex (6101.0) -
z の双曲線余弦関数の値を返します。
z の双曲線余弦関数の値を返します。
@param z 数値
@raise TypeError z に数値以外を指定した場合に発生します。 -
Gem
. # marshal _ version -> String (6101.0) -
Marshal のバージョンを表す文字列を返します。
...Marshal のバージョンを表す文字列を返します。... -
Math
. # acosh(x) -> Float (6101.0) -
x の逆双曲線余弦関数(area hyperbolic cosine)の値を返します。
...x の逆双曲線余弦関数(area hyperbolic cosine)の値を返します。
=== 定義
acosh(x) = log(x + sqrt(x * x - 1)) [x >= 1]
@param x x >= 1 の範囲の実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外......の実数を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#cosh...