def alias_methods
     aliased_methods = []
     public_methods.each{|old_method|
       if old_method.match(/[A-Z]+/)
          new_method = old_method.gsub(/[A-Z]+/){|uc| "_#{uc.downcase}"}
          aliased_methods << new_method
          instance_eval( "alias #{new_method} #{old_method}")
       end
     }
     aliased_methods
   end
def alias_methods
     aliased_methods = []
     public_methods.each{|old_method|
       if old_method.match(/[A-Z]+/)
          new_method = old_method.gsub(/[A-Z]+/){|uc| "_#{uc.downcase}"}
          aliased_methods << new_method
          instance_eval( "alias #{new_method} #{old_method}")
       end
     }
     aliased_methods
   end
Add method aliases that follow the ruby method naming convention.
 E.g. sendRequest will be aliased as send_request.