I'm unable to find a method that allows in place modification of object with arbitrary methods object implements that return a value.
What I'm hoping to do is
class MyClass
def return_modified_my_class_instance
...
end
end
object = MyClass.new
object.in_place!(&:return_modified_my_class_instance)
but I'm not interested in implementing this myself. I only want to do this if a in_place!
equivalent exists on Object
in ruby