るりまサーチ

最速Rubyリファレンスマニュアル検索!
40件ヒット [1-40件を表示] (0.075秒)

別のキーワード

  1. time sec
  2. date sec
  3. datetime sec
  4. time tv_sec
  5. _builtin sec

ライブラリ

クラス

キーワード

検索結果

Gem::Security::Signer#key -> OpenSSL::PKey::PKey (21302.0)

鍵を返します。

鍵を返します。

Gem::Security::Signer#key=(key) (9203.0)

鍵をセットします。

鍵をセットします。

DateTime#deconstruct_keys(array_of_names_or_nil) -> Hash (6113.0)

パターンマッチに使用する名前と値の Hash を返します。

...ます。

キーに利用できる名前は以下の通りです。

* :year
* :month
* :day
* :yday
* :wday
* :hour
* :min
* :sec
* :sec_fraction
* :zone

@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全て...
...ーンマッチに使用します。

//emlist[例][ruby]{
dt = DateTime.new(2022, 10, 5, 13, 30)

if dt in wday: 1..5, hour: 10..18 # deconstruct_keys が使われます
puts "Working time"
end
#=> "Working time" が出力される

case dt
in year: ...2022
puts "too old"
in month: ..9
puts "...

Time#deconstruct_keys(array_of_names_or_nil) -> Hash (6107.0)

パターンマッチに使用する名前と値の Hash を返します。

...す。

キーに利用できる名前は以下の通りです。

* :year
* :month
* :day
* :yday
* :wday
* :hour
* :min
* :sec
* :subsec
* :dst
* :zone

@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全て...
...をパターンマッチに使用します。

//emlist[例][ruby]{
t = Time.utc(2022, 10, 5, 21, 25, 30)

if t in wday: 3, day: ..7 # deconstruct_keys が使われます
puts "first Wednesday of the month"
end
#=> "first Wednesday of the month" が出力される

case t
in year: ...2022
puts "...

OpenSSL::Config#each {|section, key, value| ... } -> self (214.0)

オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。

...文字列、の3つです。

require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name (2 letter code)"]
# => ["req_distinguished_name", "country...

絞り込み条件を変える