General

Profile

kyledecot (Kyle Decot)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

02/21/2016

03:22 AM Ruby Feature #8921: Allow select, reject, etc to accept a regex
Has there been any thought on this?
kyledecot (Kyle Decot)

12/26/2014

05:39 AM Ruby Bug #10654 (Closed): Nil -> Rational Inconsistency
I'm not sure if this is a bug or not but there seems to be some inconsistency in creating a rational from nil.
Rational(nil) # => TypeError: can't convert nil into Rational
nil.to_r # => (1/0)
I would think that the latter would p...
kyledecot (Kyle Decot)

07/31/2014

03:44 PM Ruby Bug #10103 (Closed): Unable to refine class with CONSTANT
When refining a class (such as `String` in the following example) it is impossible to assign a constant. The constant will get attached to the module containing the refinement instead of the refined class. When inside of a `refine` bloc... kyledecot (Kyle Decot)

09/19/2013

10:45 AM Ruby Feature #8921: Allow select, reject, etc to accept a regex
Again, I understand that `grep` can do this but I feel that (especially in my reject example) that the intent is much clearer w/ my proposed addition. What would be the downside to adding something like this to select/reject (or Enumbera... kyledecot (Kyle Decot)
12:24 AM Ruby Feature #8921: Allow select, reject, etc to accept a regex
=begin
Yes, grep would be a suitable alternative for `select` w/ a regex in this instance. What about for `reject` though? I feel that
%w[foo bar baz].reject /^ba/ # ["foo"]
Is more readable than
%w[foo bar baz].grep /^...
kyledecot (Kyle Decot)

09/18/2013

11:37 PM Ruby Feature #8921 (Open): Allow select, reject, etc to accept a regex
It would be handy if `select` could accept a regex. For example
```ruby
%w[foo bar baz].select(/^ba/) # => ["bar", "baz"]
```
This is currently possible via the slightly longer syntax
```ruby
%w[foo bar baz].select{|i| i[/^b...
kyledecot (Kyle Decot)

09/02/2013

12:31 PM Ruby Feature #8825: Symbol Argument to any?
Yes. That's what I was thinking. kyledecot (Kyle Decot)

08/28/2013

02:54 AM Ruby Feature #8825 (Rejected): Symbol Argument to any?
It would be nice if `any?` could take a symbol much like `map`. For example:
foo.any?(&:bar)
kyledecot (Kyle Decot)

06/04/2013

02:49 AM Ruby Feature #8462: Module.remove_const inconsistant naming
(Sorry for the duplicate post, this one can be deleted)
kyledecot (Kyle Decot) wrote:
> I understand that it's a dangerous operation but how does naming it inconsistently make any less so other than making it difficult to find in the do...
kyledecot (Kyle Decot)
02:42 AM Ruby Feature #8462: Module.remove_const inconsistant naming
I understand that it's a dangerous operation but how does naming it inconsistently make any less so other than making it difficult to find in the documentation? The fact that it's a private method I would think should be protection enoug... kyledecot (Kyle Decot)

Also available in: Atom