class RBS::UnitTest::Convertibles::BlankSlate
Public Instance Methods
__with_object_methods(*methods)
click to toggle source
# File rbs-3.4.4/lib/rbs/unit_test/convertibles.rb, line 12 def __with_object_methods(*methods) methods.each do |method| singleton_class = ::Object.instance_method(:singleton_class).bind_call(self) #: Class singleton_class.instance_eval do define_method method, ::Object.instance_method(method) end end self end