Project

General

Profile

Actions

Feature #512

closed

String#% behavior

Added by febuiles (Federico Builes) almost 14 years ago. Updated over 10 years ago.

Status:
Rejected
Priority:
Normal
Target version:
[ruby-core:18405]

Description

=begin
Right now String#% is calling #to_ary on the its arguments for every case. Should it call it on cases where it only receives one argument?

Example:

 "%c" % 65   # the call's not really necessary but it's done here.

We'd like to have this clarified for Rubyspec and for Rubinius.
Thanks
=end

Actions

Also available in: Atom PDF