Suppose you have the following class:
class Klass
include SomeModule
def some_method
SomeModule::some_proc.call(self)
end
end
What is actually going on here? Is the ruby loading a whole copy of the instance of Klass referred to by 'self' into memory and passing that copy into the proc being called by 'some_method'? Or is there only one copy of the instance loaded into memory?