Entries from 2020-12-17 to 1 day
module M # M#itself はないけどaliasを定義できる alias itself2 itself end class C < BasicObject include ::M end # C#itself はないけど呼べる C.new.itself2 method = Object.instance_method(:method) pp method.bind_call(C.new, :itself2) # => #<Method: C(Kernel)#itself2(itself)()> m</method:>…