Just wondering if something like this is possible:
module A
def sender
varA = 'foobz'
B.public_send('receiver', varA)
end
end
module B
def receiver
puts varA #=> 'foobz'
end
end
Here I'm trying to send varA, which is defined in module A, to module B, intact. By intact I mean we're not putting it in a hash or anything, we make varA pop into existence in B.receiver.