dummey (Ricky Ng)
- Login: dummey
- Email: dummey@gmail.com
- Registered on: 12/17/2012
- Last sign in: 01/24/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
02/11/2015
-
12:18 AM Ruby Bug #10845: Subclassing String
- Ahh yea, me being derpy =(. What I wanted to actually do was sanity
check some other methods that would return a new_str:
~~~ruby
irb(main):005:0> MyString.new("hello")[0].class
=> MyString
irb(main):006:0> MyString.new("he...
02/10/2015
-
11:58 PM Ruby Bug #10845: Subclassing String
- Hmm, guessing that '+' and '%' are being a bit weird...
Verified the some thing happens in: ruby 2.0.0p481
It does look like '<<' is working (or not working) though.
~~~ruby
irb(main):007:0> MyString.new("foo").<<("foo"...
12/17/2012
-
03:03 PM Ruby Feature #7580: Range translation
- I would normally agree that 'shift' would be the proper term except that it's used in Array already which could cause a bit of confusion.