General

Profile

knu (Akinori MUSHA)

Issues

Projects

Activity

Today

09:50 AM Ruby trunk Feature #14022: String#surround
I thought `yield_self` was about solving problems like this:
`[1, 2, 3].join(", ").yield_self { |s| "<#{s}>" }`
...

10/19/2017

08:56 AM Ruby trunk Feature #13869: Filter non directories from Dir.glob
Just an idea: a flag to say directories should end with a slash so you can collect directories with `"...*/"` and non...
07:28 AM Ruby trunk Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
One concern is that Array#slice! returns deleted elements whereas this Hash#slice! would return pairs left after slic...
07:11 AM Ruby trunk Feature #12753: Useful operator to check bit-flag is true or false
Speaking of plurality, what about:
`a.bit?(b)` → `a & b != 0`
`a.bits?(b)` → `a & b == b`

10/06/2017

08:09 AM Ruby trunk Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
I think `&[symbol, *args]` can be a natural extension to `&symbol`, as they are both a shorthand for `{ |_| _.__send_...

10/05/2017

10:24 AM Ruby trunk Feature #12648: `Enumerable#sort_by` with descending option
Another path could be to introduce the sense of "reversed object".
I don't yet have a good name for the method tha...
10:00 AM Ruby trunk Feature #12648: `Enumerable#sort_by` with descending option
Something like this can be a solution for sorting with multiple keys with separate ordering directions.
```ruby
m...
03:35 AM Ruby trunk Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
Wouldn't Array#to_proc make sense?
```ruby
class Array
def to_proc
proc { |x| x.__send__(*self) }
end
...

09/19/2017

08:48 AM Ruby trunk Feature #13801: Implement case equality test for Set#===
I don't remember but I guess I didn't define `Set#===` probably because Array didn't, but I agree `Set#===` could be ...
08:45 AM Ruby trunk Feature #13801 (Closed): Implement case equality test for Set#===
Applied in changeset trunk|r59966.
----------
Alias Set#=== to #include?
* set.rb (Set#===): Added via [Feature #13...

Also available in: Atom