General

Profile

rringler (Ryan Ringler)

  • Registered on: 09/24/2016
  • Last connection: 09/15/2018

Issues

Activity

05/27/2018

08:07 PM Ruby trunk Feature #14788 (Open): `Hash#keys` Could Accept a Block
Sometimes I only need to fetch *some* of the keys from a Hash. With the current `Hash#keys` implementation, this requ... rringler (Ryan Ringler)

03/08/2018

04:42 AM Ruby trunk Feature #14546: Hash#delete!
sawa (Tsuyoshi Sawada) wrote:
> What is wrong with using `fetch`?
>
> ```ruby
> {a: "a"}.fetch(:b) # => KeyError...
rringler (Ryan Ringler)

02/24/2018

04:42 AM Ruby trunk Feature #14546: Hash#delete!
nobu (Nobuyoshi Nakada) wrote:
> `Hash#delete` is destructive, so appending `!` doesn't seem making sense.
I'm as...
rringler (Ryan Ringler)

02/23/2018

06:52 PM Ruby trunk Feature #14546 (Open): Hash#delete!
Hash#delete currently returns nil if a given key is not found in the hash. It would be nice to have a way to check th... rringler (Ryan Ringler)

11/29/2016

03:42 AM Ruby trunk Feature #12786: String#casecmp?
Thank you for incorporating this!
I see the changeset implements the new method by calling `String#downcase` on bo...
rringler (Ryan Ringler)

11/27/2016

04:02 AM Ruby trunk Feature #12786: String#casecmp?
Nobuyoshi Nakada wrote:
> `String#casecmp` also should have those options, I think.
I agree, and feel strongly th...
rringler (Ryan Ringler)

11/26/2016

09:13 PM Ruby trunk Feature #12786: String#casecmp?
Martin Dürst wrote:
> I gave an implementation in Ruby, but can somebody provide an equivalent patch in C?
The at...
rringler (Ryan Ringler)
09:09 PM Ruby trunk Feature #12786: String#casecmp?
Yukihiro Matsumoto wrote:
> `casecmp?` accepted.
>
> Matz.
Thank you!
rringler (Ryan Ringler)

09/24/2016

08:35 AM Ruby trunk Feature #12786: String#casecmp?
Some thoughts on method naming...
* New method: `#casecmp?`
* **PROS:** Nice symmetry with `Fixnum`'s `#<=>` & ...
rringler (Ryan Ringler)
03:02 AM Ruby trunk Feature #12786: String#casecmp?
Martin Dürst wrote:
> Does it only compare for equality (after case folding)?
Yep. All it would do is check if t...
rringler (Ryan Ringler)

Also available in: Atom