960件ヒット
[901-960件を表示]
(0.100秒)
ライブラリ
- ビルトイン (252)
- date (50)
-
fiddle
/ import (24) - json (12)
-
net
/ http (12) -
net
/ imap (36) -
net
/ smtp (48) - openssl (84)
-
rdoc
/ code _ object (12) -
rdoc
/ context (120) -
rinda
/ rinda (48) -
rinda
/ tuplespace (60) -
rubygems
/ security (108) - set (18)
- time (24)
- timeout (16)
- un (12)
クラス
- Array (10)
-
CGI
:: Cookie (12) - DateTime (50)
- FalseClass (60)
-
Gem
:: Security :: Policy (84) -
Gem
:: Security :: Signer (24) -
Net
:: HTTP (12) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
Net
:: SMTP (48) -
OpenSSL
:: Config (84) -
RDoc
:: CodeObject (12) -
RDoc
:: Context (36) -
RDoc
:: Context :: Section (84) -
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (48) -
Rinda
:: TupleSpaceProxy (48) - Set (24)
- String (21)
- Symbol (21)
- Time (158)
-
WEBrick
:: Cookie (12)
モジュール
-
Fiddle
:: Importer (24) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) - Kernel (28)
キーワード
- & (12)
- == (12)
- [] (12)
- ^ (12)
-
add
_ value (12) -
auth
_ cram _ md5 (12) -
auth
_ login (12) -
auth
_ plain (12) - authenticate (12)
- casecmp (24)
- casecmp? (18)
-
cert
_ chain (12) - code (12)
- comment (12)
-
current
_ section (12) - data (12)
-
deconstruct
_ keys (4) - each (12)
-
get
_ value (12) - inspect (24)
- intersect? (16)
- intersection (18)
- iso8601 (12)
-
keep
_ alive _ timeout= (12) - key (12)
- name (12)
- notify (24)
- nsec (12)
-
only
_ signed (12) -
only
_ trusted (12) - parent (12)
- read (24)
- renew (12)
-
sec
_ fraction (12) - second (12)
-
second
_ fraction (12) - section (24)
- sections (24)
- secure (24)
- sequence (12)
-
set
_ comment (12) -
set
_ current _ section (12) - sizeof (12)
- struct (12)
- subsec (12)
- take (24)
- timeout (16)
- title (12)
-
to
_ a (12) -
to
_ i (12) -
to
_ json (12) -
to
_ s (12) -
tv
_ nsec (12) -
tv
_ sec (12) -
tv
_ usec (12) - usec (12)
- value (12)
-
verify
_ chain (12) -
verify
_ data (12) -
verify
_ gem (12) -
verify
_ root (12) -
verify
_ signer (12) -
wait
_ writable (12) - write (24)
- xmlschema (12)
- | (12)
検索結果
先頭5件
-
Kernel
# wait _ writable -> () (137.0) -
ファイルが書き込み可能になるまで待ちます。
...ファイルが書き込み可能になるまで待ちます。
ruby -run -e wait_writable -- [OPTION] FILE
-n RETRY リトライ回数
-w SEC リトライごとに待つ秒数
-v 詳細表示... -
Fiddle
:: Importer # struct(signature) -> Class (125.0) -
C の構造体型に対応する Ruby のクラスを構築して返します。
...してデータを定義します。例えば C における
struct timeval {
long tv_sec;
long tv_usec;
};
という構造体型に対応して
Timeval = struct(["long tv_sec", "long tv_usec"])
として構造体に対応するクラスを生成します。
このメソッドが返......require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
extern "int gettimeofday(void*, void*)"
Timeval = struct(["long tv_sec", "long tv_usec"])
end
time = M::Timeval.malloc
M.gettimeofday(time, Fiddle::NULL)
p time.tv_sec
p time.tv_usec... -
Net
:: HTTP # keep _ alive _ timeout=(seconds) (123.0) -
以前のリクエストで使ったコネクションの再利用(keep-alive)を許可する秒数を 設定します。
...ションの再利用(keep-alive)を許可する秒数を
設定します。
この秒数以内に同じホストに次のリクエストを送った場合、
ソケットを再利用します。
デフォルトは2(秒)です。これは一般的にサーバ側の keep-alive の秒数
が2秒で... -
Time
# to _ i -> Integer (120.0) -
起算時からの経過秒数を整数で返します。
...起算時からの経過秒数を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
p t.tv_sec # => 946749845
//}... -
DateTime
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (119.0) -
パターンマッチに使用する名前と値の Hash を返します。
...ます。
キーに利用できる名前は以下の通りです。
* :year
* :month
* :day
* :yday
* :wday
* :hour
* :min
* :sec
* :sec_fraction
* :zone
@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全て......れます
puts "Working time"
end
#=> "Working time" が出力される
case dt
in year: ...2022
puts "too old"
in month: ..9
puts "quarter 1-3"
in wday: 1..5, month:
puts "working day in month #{month}"
end
#=> "working day in month 10" が出力される
# クラスのチェックと組... -
Time
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (113.0) -
パターンマッチに使用する名前と値の Hash を返します。
...す。
キーに利用できる名前は以下の通りです。
* :year
* :month
* :day
* :yday
* :wday
* :hour
* :min
* :sec
* :subsec
* :dst
* :zone
@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全て......sday of the month"
end
#=> "first Wednesday of the month" が出力される
case t
in year: ...2022
puts "too old"
in month: ..9
puts "quarter 1-3"
in wday: 1..5, month:
puts "working day in month #{month}"
end
#=> "working day in month 10" が出力される
# クラスのチェックと... -
Fiddle
:: Importer # sizeof(t) -> Integer (107.0) -
C における sizeof(t) の値を返します。
...ている型を Fiddle が知らなかった
場合に発生します
例:
require 'fiddle/import'
module M
extend Fiddle::Importer
Timeval = struct(["long tv_sec", "long tv_usec"])
p sizeof("char") # => 1
p sizeof("void*") # => 8
p sizeof(Timeval) # => 16
end...