razor (Marat Chardymov)
- Login: razor
- Registered on: 06/23/2017
- Last sign in: 07/01/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
06/23/2017
-
01:47 PM Ruby Feature #13676: to_s method is not overriden for Set
- nobu (Nobuyoshi Nakada) wrote:
> What do you want to do?
> ...
I'm printing several sets in my erb. It would be nice have such **to_s** behaviour by default, eliminating the need to call **to_a** on each of them before print -
01:09 PM Ruby Feature #13676 (Closed): to_s method is not overriden for Set
- When I call
~~~ ruby
s1 = Set.new
s1<<'tic'<<'tac'
s1.to_s
~~~
I'd expect ['tic', 'tac'] values being printed, not "#<Set:0x0055f331076348>"