ライブラリ
- ビルトイン (71)
-
cgi
/ html (55) - fileutils (11)
- json (33)
- mkmf (44)
- monitor (5)
- openssl (132)
- pstore (11)
- pty (11)
- rake (11)
-
rexml
/ document (11) -
rubygems
/ package / tar _ writer (11) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - strscan (44)
- uri (66)
-
win32
/ registry (176) - win32ole (11)
クラス
- Exception (22)
-
Gem
:: Package :: TarWriter (11) -
JSON
:: State (11) - Module (5)
- Monitor (5)
- Object (22)
-
OpenSSL
:: BN (33) -
OpenSSL
:: OCSP :: Request (11) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: SSL :: SSLSocket (11) -
OpenSSL
:: X509 :: Certificate (11) - PStore (11)
-
REXML
:: Text (11) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - StringScanner (44)
-
URI
:: FTP (22) -
URI
:: Generic (11) -
URI
:: HTTP (11) -
URI
:: LDAP (11) -
URI
:: MailTo (11) - WIN32OLE (11)
モジュール
-
CGI
:: HtmlExtension (55) - FileUtils (22)
- JSON (22)
- Kernel (66)
-
OpenSSL
:: OCSP (11) -
OpenSSL
:: SSL (22) -
OpenSSL
:: X509 (22) - PTY (11)
-
Win32
:: Registry :: API (176)
キーワード
- == (11)
- === (11)
-
Check
_ SafeStr (1) -
Check
_ Type (11) - CloseKey (11)
- CreateKey (11)
- DeleteKey (11)
- DeleteValue (11)
-
EMPTY
_ MARSHAL _ CHECKSUM (11) - EnumKey (11)
- EnumValue (11)
- FlushKey (11)
- NOCHECKS (11)
-
OP
_ PKCS1 _ CHECK _ 1 (11) -
OP
_ PKCS1 _ CHECK _ 2 (11) - OpenKey (11)
- QueryInfoKey (11)
- QueryValue (11)
- SafeStringValue (11)
- SetValue (11)
-
V
_ FLAG _ CRL _ CHECK (11) -
V
_ FLAG _ CRL _ CHECK _ ALL (11) -
backtrace
_ locations (11) -
block
_ given? (11) -
check
_ circular? (11) -
check
_ closed (11) -
check
_ nonce (11) -
check
_ point (18) -
check
_ private _ key (11) -
check
_ signedness (22) -
check
_ sizeof (22) -
check
_ until (11) - checkbox (22)
-
checkbox
_ group (22) -
cvar
_ override _ check (11) -
finish
_ all _ jobs (18) - generate (11)
-
initialize
_ copy (11) - iterator? (11)
-
mon
_ check _ owner (5) - new (66)
- new2 (11)
-
ole
_ query _ interface (11) - packdw (11)
- packqw (11)
-
post
_ connection _ check (11) - prime? (22)
-
prime
_ fasttest? (11) -
rb
_ check _ convert _ type (11) -
rb
_ check _ safe _ str (1) -
rb
_ cstr _ to _ dbl (11) -
rb
_ eval _ cmd (11) -
rb
_ read _ check (1) -
rb
_ str _ to _ dbl (11) -
rb
_ thread _ check (11) -
remove
_ entry _ secure (11) -
ruby2
_ keywords (5) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / search _ command (11) -
scan
_ full (11) -
search
_ full (11) - sh (11)
- unpackdw (11)
- unpackqw (11)
- unparse (11)
検索結果
先頭5件
-
StringScanner
# check(regexp) -> String | nil (21313.0) -
現在位置から regexp とのマッチを試みます。 マッチに成功したらマッチした部分文字列を返します。 マッチに失敗したら nil を返します。
...敗したら nil を返します。
このメソッドはマッチが成功してもスキャンポインタを進めません。
@param regexp マッチに用いる正規表現を指定します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.check(/\w+/) # => "......test"
s.pos # => 0
s.matched # => "test"
s.check(/\s+/) # => nil
s.matched # => nil
//}... -
Win32
:: Registry :: API . # check(result) (21201.0) -
@todo
@todo -
StringScanner
# check _ until(regexp) -> String | nil (18407.0) -
regexp が一致するまで文字列をスキャンします。 マッチに成功したらスキャン開始位置からマッチ部分の末尾までの部分文字列を返します。 マッチに失敗したら nil を返します。
...したら nil を返します。
このメソッドはマッチが成功してもスキャンポインタを進めません。
@param regexp マッチに用いる正規表現を指定します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.check_until(/str/) # =... -
WIN32OLE
# ole _ query _ interface(iid) -> WIN32OLE (18406.0) -
IID(インターフェイスID)を指定してオブジェクトの別のインターフェイスを 持つオブジェクトを取得します。
...
IID(インターフェイスID)を指定してオブジェクトの別のインターフェイスを
持つオブジェクトを取得します。
オブジェクトが複数のオートメーション用インターフェイスを持つ場合に、当
メソッドを利用して既定のイ......m iid 取得するインターフェイスのIIDを文字列で指定します。
@return iidパラメータで指定したインターフェイスを持つWIN32OLEオブジェクト
@raise WIN32OLERuntimeError 指定したIIDをオブジェクトが持たない場合に通知されます。
ie......す。
def check_solution_version(obj)
[['{CDA7305C-78B6-4D9D-90AD-93EBE71F9341}', 4],
['{DF23915F-FDA3-4DD5-9CAA-2E1372C2BB16}', 3],
['{FA238614-FBB1-4314-A7F7-49AE8BB6C6BA}', 2]].each do |iid, ver|
begin
intf = obj.ole_query_interface(iid)
intf.ole_free... -
JSON
:: State # check _ circular? -> bool (18313.0) -
循環参照のチェックを行う場合は、真を返します。 そうでない場合は偽を返します。
...環参照のチェックを行う場合は、真を返します。
そうでない場合は偽を返します。
//emlist[例 ネストをチェックするケース][ruby]{
require "json"
a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]......]]]]]]
s = JSON.state.new
begin
JSON.generate(a, s)
rescue JSON::NestingError => e
[e, s.max_nesting, s.check_circular?] # => [#<JSON::NestingError: nesting of 100 is too deep>, 100, true]
end
//}
//emlist[例 ネストをチェックしないケース][ruby]{
require "json"
a = [[[[[[[[[[[[[[......ing: 0)
json = JSON.generate(a, s2)
[json, s2.max_nesting, s2.check_circular?] # => ["[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]", 0, fal... -
PTY
. check(pid , raise = false) -> Process :: Status | nil (18307.0) -
pid で指定された子プロセスの状態をチェックし、変化があれば変化したステータスを 返します。実行中、あるいは変化なしであれば nil を返します。
...pid で指定された子プロセスの状態をチェックし、変化があれば変化したステータスを
返します。実行中、あるいは変化なしであれば nil を返します。
状態が変化した後、その状態を取得することは一回しかできない(く...... check を
呼んだら nil が返ってくる)ので注意してください。
状態が変化して、終了したか停止した場合、第二引数が偽であれば、
対応する Process::Status オブジェクトを返します。
@param pid チェックしたい子プロセスの PID......を指定します。
@param raise 真を指定すると、子プロセスが終了または停止していた場合、
例外 PTY::ChildExited が発生します。デフォルトは偽です。
(なお、バグにより、1.9.2 pXXX より古い ruby では、終了ま... -
OpenSSL
:: SSL :: SSLSocket # post _ connection _ check(hostname) -> true (18201.0) -
接続後検証を行います。
...。
検証に成功した場合は true を返し、失敗した場合は例外
OpenSSL::SSL::SSLError を発生させます。
OpenSSL の API では、
OpenSSL::SSL::SSLSocket#connect や OpenSSL::SSL::SSLSocket#accept
での検証は実用的には不完全です。
CA が証明書に署名......証明書に記載されている FQDN が
一致しているかどうかを調べます。このメソッドはその FQDN のチェックを行ないます。
@param hostname チェックする FQDN の文字列
@raise OpenSSL::SSL::SSLError チェックに失敗した場合に発生します... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (15534.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', follow......llowed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compi......ler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (15534.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', follow......llowed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compi......ler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (15418.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...ception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if D......aise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:i......n `<main>'"]
//}
@see Exception#backtrace...