Actions
Feature #20703
closedAlias StringIO#string to StringIO#to_s/to_str
Feature #20703:
Alias StringIO#string to StringIO#to_s/to_str
Status:
Rejected
Assignee:
-
Target version:
-
Description
Description¶
Allow to use StringIO.new('my string').to_s to be the same as StringIO.new('my string').string
IMO nobody really uses the current StringIO#to_s, so I don't think it will break other apps.
- Also added .to_str
That way you can also do interpolation easily
Actions