ライブラリ
- ビルトイン (66)
-
cgi
/ html (60) - json (12)
- mkmf (48)
- monitor (6)
-
net
/ imap (12) - openssl (120)
- rake (12)
-
rubygems
/ package / tar _ header (24) -
rubygems
/ package / tar _ writer (12) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (24)
- strscan (48)
- win32ole (12)
クラス
- BasicSocket (12)
- Exception (24)
-
Gem
:: Package :: TarHeader (24) -
Gem
:: Package :: TarWriter (12) -
JSON
:: State (12) - Module (12)
- Monitor (6)
-
Net
:: IMAP (12) - Object (24)
-
OpenSSL
:: BN (36) -
OpenSSL
:: OCSP :: Request (12) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: SSL :: SSLSocket (12) -
OpenSSL
:: X509 :: Certificate (12) -
OpenSSL
:: X509 :: Store (12) -
OpenSSL
:: X509 :: StoreContext (12) - Proc (6)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (12)
- StringScanner (48)
- WIN32OLE (12)
モジュール
-
CGI
:: HtmlExtension (60) - FileUtils (12)
- Kernel (48)
キーワード
- == (12)
- === (12)
-
backtrace
_ locations (12) -
check
_ circular? (12) -
check
_ closed (12) -
check
_ key (12) -
check
_ nonce (12) -
check
_ point (18) -
check
_ private _ key (12) -
check
_ signedness (24) -
check
_ sizeof (24) -
check
_ until (12) - checkbox (24)
-
checkbox
_ group (24) - checksum (12)
-
connect
_ nonblock (12) -
finish
_ all _ jobs (18) - flags= (24)
- getpeereid (12)
-
initialize
_ copy (12) -
mon
_ check _ owner (6) -
ole
_ query _ interface (12) -
post
_ connection _ check (12) - prime? (24)
-
prime
_ fasttest? (12) -
ruby2
_ keywords (18) -
scan
_ full (12) -
search
_ full (12) - sh (12)
-
update
_ checksum (12)
検索結果
先頭5件
-
OpenSSL
:: X509 :: StoreContext # flags=(flags) (13.0) -
CRL に関するフラグを設定します。
...CRL に関するフラグを設定します。
以下の定数から必要なものを選んで OR 取り、渡します。
* OpenSSL::X509::V_FLAG_CRL_CHECK
* OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
@param flags 設定するフラグ(整数値)
@see OpenSSL::X509::Store#flags=... -
StringScanner
# scan _ full(regexp , s , f) -> object (13.0) -
スキャンポインタの位置から regexp と文字列のマッチを試します。
...r#scan と同等。
* scan_full(regexp, true, false) は StringScanner#skip と同等。
* scan_full(regexp, false, true) は StringScanner#check と同等。
* scan_full(regexp, false, false) は StringScanner#match? と同等。
@param regexp マッチに用いる正規表現を指定......true, true) #=> "test"
p s.scan_full(/\s+/, false, true) #=> " "
p s.scan_full(/\s+/, true, false) #=> 1
p s.scan_full(/\w+/, false, false) #=> 6
p s.scan_full(/\w+/, true, true) #=> "string"
//}
@see StringScanner#scan StringScanner#skip StringScanner#check StringScanner#match?... -
StringScanner
# search _ full(regexp , s , f) -> object (13.0) -
regexp で指定された正規表現とマッチするまで文字列をスキャンします。
...同等。
* search_full(regexp, true, false) は StringScanner#skip_until と同等。
* search_full(regexp, false, true) は StringScanner#check_until と同等。
* search_full(regexp, false, false) は StringScanner#exist? と同等。
@param regexp マッチに用いる正規表現......tringScanner.new('test string')
p s.search_full(/t/, true, true) #=> "t"
p s.search_full(/str/, false, true) #=> "est str"
p s.search_full(/string/, true, true) #=> "est string"
//}
@see StringScanner#scan_until StringScanner#skip_until StringScanner#check_until StringScanner#exist?... -
BasicSocket
# getpeereid -> [Integer , Integer] (7.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
...り値は
不定です。
require 'socket'
Socket.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid
# Check the connected client is myself or not.
next if euid != Process.uid
# do something about my resource.
ensure
s.close... -
FileUtils
# sh(*cmd) {|result , status| . . . } (7.0) -
与えられたコマンドを実行します。
...cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (7.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...his method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the module responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
method will change s... -
Proc
# ruby2 _ keywords -> proc (7.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...his method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
proc will change so th... -
Socket
# connect _ nonblock(server _ sockaddr) -> 0 (7.0) -
ソケットをノンブロッキングモードに設定した後、 connect(2) を呼び出します。
...kaddr)
rescue IO::WaitWritable
IO.select(nil, [socket]) # wait 3-way handshake completion
begin
socket.connect_nonblock(sockaddr) # check connection failure
rescue Errno::EISCONN
end
end
socket.write("GET / HTTP/1.0\r\n\r\n")
results = socket.read
@param server_socka... -
WIN32OLE
# ole _ query _ interface(iid) -> WIN32OLE (7.0) -
IID(インターフェイスID)を指定してオブジェクトの別のインターフェイスを 持つオブジェクトを取得します。
...ンを調べたい場合に、以
下のような方法で、インターフェイスのバージョンを調べることができます。
def check_solution_version(obj)
[['{CDA7305C-78B6-4D9D-90AD-93EBE71F9341}', 4],
['{DF23915F-FDA3-4DD5-9CAA-2E1372C2BB16}', 3],
['{FA238614-FBB1...