General

Profile

soulcutter (Bradley Schaefer)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

09/05/2025

11:56 PM Ruby Bug #21563 (Closed): Misleading error message when `to_proc` does not return a Proc in an Object used as a &block argument
When a class implements `#to_proc` it should always return a Proc. Nonetheless bugs are possible, and when an implementation returns something else, and is used as a block argument to a method, you get an error that claims that the argum... soulcutter (Bradley Schaefer)

07/11/2025

04:13 PM Ruby Bug #18903: Stack overflow signal handling seems to be triggered once and then not working after
One observation I have is that there are ways to prevent this in application code:
```ruby
require 'json'
circular_reference_hash = {}.tap { |h| h[:self] = h }
# Globally
JSON.dump_default_options[:max_nesting] = 100
JSON.dump(circular...
soulcutter (Bradley Schaefer)

07/02/2020

04:45 PM Ruby Feature #17004: Provide a way for methods to omit their return value
jeremyevans0 (Jeremy Evans) wrote in #note-16:
> soulcutter (Bradley Schaefer) wrote in #note-15:
> ...
That's fair. There's still a warning flag in my head that there's some subtle case where it is trickier to test, but I might be str...
soulcutter (Bradley Schaefer)
04:13 PM Ruby Feature #17004: Provide a way for methods to omit their return value
jeremyevans0 (Jeremy Evans) wrote in #note-13:
> ```ruby
> ...
What scares me about this is the idea of using interactive debuggers (or even plan-old puts debugging) changing the behavior of the code. You would have to be an expert (...
soulcutter (Bradley Schaefer)

08/25/2013

01:53 AM Ruby Bug #8817 (Closed): Method#owner on prepended classes is an instance rather than Class/Method
rdoc indicates that Method#owner will return a class or module that defines a method. http://www.ruby-doc.org/core-2.0/Method.html#method-i-owner
For classes that have prepended modules, the owner is actually an instance.
Example c...
soulcutter (Bradley Schaefer)

Also available in: Atom