ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:52080]  [Ruby master Feature#6317] Range#cover?の引数としてRangeインスタンスを受けられるようにして欲しい
       [not found] <redmine.issue-6317.20120418205108.2537@ruby-lang.org>
@ 2024-03-20  0:46 ` matheusrich (Matheus Richard) via ruby-dev
  0 siblings, 0 replies; only message in thread
From: matheusrich (Matheus Richard) via ruby-dev @ 2024-03-20  0:46 UTC (permalink / raw)
  To: ruby-dev; +Cc: matheusrich (Matheus Richard)

Issue #6317 has been updated by matheusrich (Matheus Richard).


@mame @naruse This currently works on Ruby. Can we close this as completed?

----------------------------------------
Feature #6317: Range#cover?の引数としてRangeインスタンスを受けられるようにして欲しい
https://bugs.ruby-lang.org/issues/6317#change-107335

* Author: masaakiaoyagi (Masaaki Aoyagi)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
青柳と申します。

以下のように、Range#cover?の引数としてRangeインスタンスを
受けられるようにして欲しいです。
(1..4).cover?(2..3) # => true
(1..4).cover?(0..3) # => false

取り敢えず実装してみましたので、添付いたします。


---Files--------------------------------
range_cover.diff (2.17 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-20  0:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-6317.20120418205108.2537@ruby-lang.org>
2024-03-20  0:46 ` [ruby-dev:52080] [Ruby master Feature#6317] Range#cover?の引数としてRangeインスタンスを受けられるようにして欲しい matheusrich (Matheus Richard) via ruby-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).