るりまサーチ

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

ライブラリ

キーワード

検索結果

<< 1 2 > >>

Date#deconstruct_keys(array_of_names_or_nil) -> Hash (6118.0)

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

...マッチに使用します。

//emlist[例][ruby]{
d = Date.new(2022, 10, 5)

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

c
ase d
in year: ...2022
puts "too old"
in month: ..9
pu...
...g day in month #{month}"
end
#=> "working day in month 10" が出力される

# クラスのチェックと組み合わせて利用することもできます
if d in Date(wday: 3, day: ..7)
puts "first Wednesday of the month"
end
//}

@see d:spec/pattern_matching#matching_non_primitive_objects...

Date#asctime -> String (6102.0)

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。...

Date#ctime -> String (6102.0)

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。...

Date#cwday -> Integer (6102.0)

暦週の日 (曜日) を返します (1-7、月曜は1)。

暦週の日 (曜日) を返します (1-7、月曜は1)。

Date#cweek -> Integer (6102.0)

暦週を返します (1-53)。

暦週を返します (1-53)。

絞り込み条件を変える

Date#cwyear -> Integer (6102.0)

暦週における年を返します。

暦週における年を返します。

Date#rfc2822 -> String (6102.0)

2822 で定められた書式の文字列を返します。

2822 で定められた書式の文字列を返します。

Date#rfc822 -> String (6102.0)

2822 で定められた書式の文字列を返します。

2822 で定められた書式の文字列を返します。

Date#xmlschema -> String (6102.0)

XML Scheme (date) による書式の文字列を返します。

...XML Scheme (date) による書式の文字列を返します。...

Date#rfc3339 -> String (3102.0)

8601 書式の文字列を返します (拡大表記はつかいません)。

8601 書式の文字列を返します (拡大表記はつかいません)。

絞り込み条件を変える

<< 1 2 > >>