IronRuby.Builtins.ModuleOps.RemoveConstant C# (CSharp) Method

RemoveConstant() private method

private RemoveConstant ( RubyModule self, [ constantName ) : object
self RubyModule
constantName [
return object
        public static object RemoveConstant(RubyModule/*!*/ self, [DefaultProtocol, NotNull]string/*!*/ constantName) {
            object value;
            if (!self.TryRemoveConstant(constantName, out value)) {
                RubyUtils.CheckConstantName(constantName);
                throw RubyExceptions.CreateNameError("constant {0}::{1} not defined", self.Name, constantName);
            }
            return value;
        }