Project

General

Profile

Actions

Bug #9701

closed

RDoc description for `String#<<` and `String#concat`

Added by sawa (Tsuyoshi Sawada) almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
Target version:
ruby -v:
2.1.0p0
[ruby-core:61851]

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.

Updated by srawlins (Sam Rawlins) almost 10 years ago

True story, in string.c:

rb_define_method(rb_cString, "concat", rb_str_concat, 1);
rb_define_method(rb_cString, "<<", rb_str_concat, 1);

Updated by zzak (zzak _) almost 10 years ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to zzak (zzak _)
  • Target version set to 2.2.0

Updated by stomar (Marcus Stollsteimer) about 7 years ago

  • 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).
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0