rbs
rbs copied to clipboard
`Proc::new` is the one that take the block, not `Proc#initialize`
May be specific to CRuby; may be a bug.
class MyProc < Proc
def self.new = super { :new }
def initialize = super { :initialize }
new.() #=> :new
end