public static void CheckSafeLevel(RubyContext /*!*/ context, int level, string /*!*/ method)
{
if (level <= context.CurrentSafeLevel)
{
throw RubyExceptions.CreateSecurityError(String.Format("Insecure operation {0} at level {1}", method, context.CurrentSafeLevel));
}
}