Method: Symbol#slice
- Defined in:
- string.c
#[](index) ⇒ String? #[](start, length) ⇒ String? #[](range) ⇒ String? #[](regexp, capture = 0) ⇒ String? #[](substring) ⇒ String?
Equivalent to symbol.to_s[]; see String#[].
12307 12308 12309 12310 12311 |
# File 'string.c', line 12307 static VALUE sym_aref(int argc, VALUE *argv, VALUE sym) { return rb_str_aref_m(argc, argv, rb_sym2str(sym)); } |