Issue #12898 has been updated by Shyouhei Urabe.


Stefan Schler wrote:
> Ruby 2.4 introduces [`Regexp#match?`](https://bugs.ruby-lang.org/issues/8110). There should be an accompanying `String#match?` method.

Can you be a bit more verbose here?  You mean a String instance method named "match?" that takes a Regexp instance?  Please show us in detail why you need that.

----------------------------------------
Feature #12898: String#match? method in addition to Regexp#match?
https://bugs.ruby-lang.org/issues/12898#change-61223

* Author: Stefan Schler
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Ruby 2.4 introduces [`Regexp#match?`](https://bugs.ruby-lang.org/issues/8110). There should be an accompanying `String#match?` method.



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>