first commit
CI / Build (clang, clang++, ubuntu-22.04, linux, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Build (clang, clang++, windows-2022, windows, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Release (push) Canceled after 0s

This commit is contained in:
2026-09-13 22:18:11 +01:00
commit 08c03ac533
6701 changed files with 1577314 additions and 0 deletions
@@ -0,0 +1,10 @@
module Kernel
def singleton_method(name)
m = method(name)
sc = (class <<self; self; end)
if m.owner != sc
raise NameError, "undefined method '#{name}' for class '#{sc}'"
end
m
end
end
@@ -0,0 +1,16 @@
class Method
def to_proc
m = self
lambda { |*args, &b|
m.call(*args, &b)
}
end
def <<(other)
->(*args, &block) { call(other.call(*args, &block)) }
end
def >>(other)
->(*args, &block) { other.call(call(*args, &block)) }
end
end