konsolebox (K B)
- Login: konsolebox
- Registered on: 05/28/2019
- Last sign in: 09/30/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
09/12/2023
-
09:55 AM Ruby Feature #19871: Add __owner__
- mame (Yusuke Endoh) wrote in #note-2:
> Could you explain the use case?
It's supposed to make sure a general-use module can be implemented purely and can't be tainted by any of its inheritors, unless it's deliberately patched of cour... -
09:47 AM Ruby Feature #19871: Add __owner__
- nobu (Nobuyoshi Nakada) wrote in #note-3:
> Why not use the constant without scopes?
> ...
I was expecting the lookup to still be affected by the inheriting class. I should have tested it first.
I guess this invalidates the feature...
09/10/2023
-
03:03 PM Ruby Feature #19871: Add __owner__
- The changes needed to implement this turned out to be just simple so I went ahead and just created a PR in https://github.com/ruby/ruby/pull/8411.
The difference between using `method(__method__).owner` and using `__owner__` can be de... -
07:58 AM Ruby Feature #19871 (Rejected): Add __owner__
- Which will give the owner of the currently executing method.
`method(__method__).owner` or `method(__callee__).owner` isn't enough since it may return a different owner if the method is overridden.
Relying on calling the name of it...
07/29/2022
-
10:10 AM Ruby Revision 419ad1e1 (git): [ruby/optparse] Also accept '-' as an optional argument (https://github.com/ruby/optparse/pull/35)
- https://github.com/ruby/optparse/commit/f2b8318631
05/19/2022
-
12:15 AM Ruby Bug #18783: OptionParser should recognize "-" as an optional argument
- Any thoughts on this?
I created a PR: https://github.com/ruby/ruby/pull/5918
05/15/2022
-
03:46 AM Ruby Bug #18783 (Closed): OptionParser should recognize "-" as an optional argument
- ``` ruby
require 'optparse'
optarg = nil
OptionParser.new do |parser|
parser.on("-o", "--opt [ARG]", "Option with optional argument") do |arg|
optarg = arg
end
end.parse!
puts "#{optarg.inspect}, #{ARGV.inspect}"
`...
01/07/2022
-
06:23 PM Ruby Feature #12125: Proposal: Shorthand operator for Object#method
- Has `&&` been considered?
```
Dir["*/*.c"].map(&&File.basename)
```
It can also adapt to outside usage so `&File.basename` equals `File.method(:basename)`.
06/23/2021
-
09:04 AM Ruby Feature #18004: Add Async to the stdlib
- shan (Shannon Skipper) wrote in #note-2:
> It seemed nice for Ruby to also ship with a concurrent I/O library if a preferred one can be adopted.
Or implement Promises plus await/async in Ruby maybe? The async and await combo especially...
06/14/2019
-
07:30 PM Ruby Feature #15799: pipeline operator
- rogeriochaves (Rogerio Chaves) wrote:
> May I give yet another suggestion? What about :., it would keep the visual effect
> ...
Or \\ maybe. It's much easier to type.
1 + 1 \\ to_s 2 \\ reverse \\ to_i
We can then have |> as an a...