I am new to ruby and was trying to figure how the block will be executed
in a particular case.
def A ( &old_block)
unbound_obj = instance_method(:B)
define_method(:B) do |*args, &block|
def B(*args, &block)
Is Instance_exec in A going to form the body of method B or it will
simply execute the old_block and perform the action whatever were
present in old block
Can call take block as arguments, if yes, then when this block will
be executed, considering that method B has some body as well.