40件ヒット
[1-40件を表示]
(0.075秒)
ライブラリ
- ビルトイン (2)
- date (2)
- openssl (12)
-
rubygems
/ security (24)
クラス
- DateTime (2)
-
Gem
:: Security :: Signer (24) -
OpenSSL
:: Config (12) - Time (2)
キーワード
-
deconstruct
_ keys (4) - each (12)
- key= (12)
検索結果
先頭5件
-
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...