Bug #9701 closed
RDoc description for `String#<<` and `String#concat`
Added by sawa (Tsuyoshi Sawada) over 12 years ago.
Updated over 9 years ago.
Description
As far as I can see, String#<< is an alias of String#concat, but in the RDoc, there is no mentioning of the connection between them. String#<< should be simply described as an alias of String#concat.
True story, in string.c:
rb_define_method(rb_cString, "concat", rb_str_concat, 1);
rb_define_method(rb_cString, "<<", rb_str_concat, 1);
Category set to doc
Status changed from Open to Assigned
Assignee set to zzak (zzak _)
Target version set to 2.2.0
Status changed from Assigned to Closed
Closing, because:
in 2.1, 2.2, 2.3, the example code shows uses of both #<< and #concat,
since 2.4, they are not aliases any more (#concat now accepts multiple arguments).
Also available in: PDF
Atom