SetAutoloadedConstant() public method

public SetAutoloadedConstant ( string name, MutableString path ) : void
name string
path MutableString
return void
Esempio n. 1
0
        public static void SetAutoloadedConstant(RubyModule /*!*/ self,
                                                 [DefaultProtocol] string /*!*/ constantName, [DefaultProtocol, NotNull] MutableString /*!*/ path)
        {
            RubyUtils.CheckConstantName(constantName);
            if (path.IsEmpty)
            {
                throw RubyExceptions.CreateArgumentError("empty file name");
            }

            self.SetAutoloadedConstant(constantName, path);
        }
Esempio n. 2
0
        public static void SetAutoloadedConstant(RubyModule/*!*/ self,
            [DefaultProtocol]string/*!*/ constantName, [DefaultProtocol, NotNull]MutableString/*!*/ path) {

            RubyUtils.CheckConstantName(constantName);
            if (path.IsEmpty) {
                throw RubyExceptions.CreateArgumentError("empty file name");
            }

            self.SetAutoloadedConstant(constantName, path);
        }
Esempio n. 3
0
 public static object Numerics(RubyModule /*!*/ self)
 {
     self.SetAutoloadedConstant("Rational", MutableString.CreateAscii("rational18.rb"));
     self.SetAutoloadedConstant("Complex", MutableString.CreateAscii("complex18.rb"));
     return(null);
 }
Esempio n. 4
0
 public static object Numerics(RubyModule/*!*/ self)
 {
     self.SetAutoloadedConstant("Rational", MutableString.CreateAscii("rational18.rb"));
     self.SetAutoloadedConstant("Complex", MutableString.CreateAscii("complex18.rb"));
     return null;
 }