Project

General

Profile

Bug #9701

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

Added by sawa (Tsuyoshi Sawada) about 5 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
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.

History

Updated by srawlins (Sam Rawlins) about 5 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 (Zachary Scott) about 5 years ago

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

Updated by stomar (Marcus Stollsteimer) about 2 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).

Also available in: Atom PDF