Method: Symbol#=~
- Defined in:
- string.c
#=~(object) ⇒ Integer?
Equivalent to symbol.to_s =~ object
, including possible updates to global variables; see String#=~.
12257 12258 12259 12260 12261 |
# File 'string.c', line 12257 static VALUE sym_match(VALUE sym, VALUE other) { return rb_str_match(rb_sym2str(sym), other); } |