Add {Regexp,String}#match with block to call-seq [ci skip]
This commit is contained in:
parent
310ef9f40b
commit
c79e3a5957
4
re.c
4
re.c
@ -3265,8 +3265,8 @@ rb_reg_match2(VALUE re)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* rxp.match(str) -> matchdata or nil
|
* rxp.match(str, pos=0) -> matchdata or nil
|
||||||
* rxp.match(str,pos) -> matchdata or nil
|
* rxp.match(str, pos=0) {|match| block } -> obj
|
||||||
*
|
*
|
||||||
* Returns a MatchData object describing the match, or
|
* Returns a MatchData object describing the match, or
|
||||||
* <code>nil</code> if there was no match. This is equivalent to
|
* <code>nil</code> if there was no match. This is equivalent to
|
||||||
|
4
string.c
4
string.c
@ -3841,8 +3841,8 @@ static VALUE get_pat(VALUE);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* str.match(pattern) -> matchdata or nil
|
* str.match(pattern, pos=0) -> matchdata or nil
|
||||||
* str.match(pattern, pos) -> matchdata or nil
|
* str.match(pattern, pos=0) {|match| block } -> obj
|
||||||
*
|
*
|
||||||
* Converts <i>pattern</i> to a Regexp (if it isn't already one),
|
* Converts <i>pattern</i> to a Regexp (if it isn't already one),
|
||||||
* then invokes its <code>match</code> method on the receiver.
|
* then invokes its <code>match</code> method on the receiver.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user