On Thu, Nov 17, 2016 at 8:00 AM, Die Optimisten
<inform / die-optimisten.net> wrote:
> How can I emulate a short form similar to (the non-existing) string.include
> /regex/ ?
> maybe immediately returning nil or the full-string ?

do you mean

ri String#match
ri String#=~

?

show sample code pls.

best regards
--botp

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