るりまサーチ

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

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. socket udp_server_loop_on
  5. thread abort_on_exception

検索結果

<< 1 2 3 ... > >>

RSS::ImageFaviconModel::ImageFavicon#date (24103.0)

@todo

@todo

RSS::TaxonomyTopicModel::TaxonomyTopic#date (24103.0)

@todo

@todo

Date#next_month(n = 1) -> Date (23208.0)

n ヶ月後を返します。

...n ヶ月後を返します。

Date
#>> も参照してください。

@param n 月数...

Date#prev_month(n = 1) -> Date (23208.0)

n ヶ月前を返します。

...n ヶ月前を返します。

Date
#<< も参照してください。

@param n 月数...

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

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

...* :month
* :day
* :yday
* :wday

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

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

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

case d
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" が出力される

# クラ...
...スのチェックと組み合わせて利用することもできます
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#mon -> Integer (23101.0)

月を返します (1-12)。

月を返します (1-12)。

Date#monday? -> bool (23101.0)

月曜日なら真を返します。

月曜日なら真を返します。

Date#month -> Integer (23101.0)

月を返します (1-12)。

月を返します (1-12)。

RSS::RDF::Channel::ImageFavicon#date (21103.0)

@todo

@todo

Gem::Specification#date -> Time (21102.0)

日付を返します。

日付を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>