UndefineMethod() публичный Метод

public UndefineMethod ( string name ) : void
name string
Результат void
Пример #1
0
        public static RubyModule /*!*/ UndefineMethod(RubyModule /*!*/ self, [DefaultProtocol] string /*!*/ methodName)
        {
            RubyMemberInfo method = self.ResolveMethod(methodName, true);

            if (method == null)
            {
                throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
            }
            self.UndefineMethod(methodName);
            return(self);
        }
Пример #2
0
 public static RubyModule /*!*/ UndefineMethod(RubyModule /*!*/ self, [DefaultProtocol, NotNullItems] params string[] /*!*/ methodNames)
 {
     foreach (var methodName in methodNames)
     {
         if (!self.ResolveMethod(methodName, VisibilityContext.AllVisible).Found)
         {
             throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
         }
         self.UndefineMethod(methodName);
     }
     return(self);
 }
Пример #3
0
 public static RubyModule/*!*/ UndefineMethod(RubyModule/*!*/ self, [DefaultProtocol]string/*!*/ methodName) {
     RubyMemberInfo method = self.ResolveMethod(methodName, true);
     if (method == null) {
         throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
     }
     self.UndefineMethod(methodName);
     return self;
 }
Пример #4
0
 public static RubyModule/*!*/ UndefineMethod(RubyModule/*!*/ self, [DefaultProtocol, NotNull]string/*!*/ methodName) {
     if (!self.ResolveMethod(methodName, VisibilityContext.AllVisible).Found) {
         throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
     }
     self.UndefineMethod(methodName);
     return self;
 }
Пример #5
0
 public static RubyModule/*!*/ UndefineMethod(RubyModule/*!*/ self, [DefaultProtocol]string/*!*/ methodName) {
     if (!self.ResolveMethod(methodName, true).Found) {
         throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
     }
     self.UndefineMethod(methodName);
     return self;
 }
Пример #6
0
 public static RubyModule UndefineMethod(RubyModule/*!*/ self, [DefaultProtocol, NotNullItems]params string[]/*!*/ methodNames)
 {
     foreach (var methodName in methodNames) {
         if (!self.ResolveMethod(methodName, VisibilityContext.AllVisible).Found) {
             throw RubyExceptions.CreateUndefinedMethodError(self, methodName);
         }
         self.UndefineMethod(methodName);
     }
     return self;
 }