What is the reason not being able to say:

#
# append def b into class A
#
def a
 class A
  def b
    dosomething
  end
 end
end

instead, we have to say

def a
 A.class_eval "def b; dosomething; end; }
end

Just curious,
YS.