Thought I'd found an object without an object id! It should prob only define these if they're not already defined. Or maybe only define instance_methods(false)
module NullQueue
extend self
Queue.instance_methods.each do |name|
define_method(name) { |*| }
end
end
ObjectSpace.each_object { |o| o.object_id || p(obj: o) }
Thought I'd found an object without an object id! It should prob only define these if they're not already defined. Or maybe only define
instance_methods(false)