IronRuby.Builtins.BuiltinsLibraryInitializer.LoadNumeric_Instance C# (CSharp) Method

LoadNumeric_Instance() private static method

private static LoadNumeric_Instance ( IronRuby module ) : void
module IronRuby
return void
        private static void LoadNumeric_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
            DefineLibraryMethod(module, "-@", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, System.Object, System.Object>(IronRuby.Builtins.Numeric.UnaryMinus)
            );
            
            DefineLibraryMethod(module, "+@", 0x51, 
                0x00000000U, 
                new Func<System.Object, System.Object>(IronRuby.Builtins.Numeric.UnaryPlus)
            );
            
            DefineLibraryMethod(module, "<=>", 0x51, 
                0x00000000U, 
                new Func<System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Compare)
            );
            
            DefineLibraryMethod(module, "abs", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.UnaryOpStorage, System.Object, System.Object>(IronRuby.Builtins.Numeric.Abs)
            );
            
            DefineLibraryMethod(module, "ceil", 0x51, 
                0x00008000U, 
                new Func<System.Double, System.Object>(IronRuby.Builtins.Numeric.Ceil)
            );
            
            DefineLibraryMethod(module, "coerce", 0x51, 
                0x00000000U, 0x00000000U, 0x00000000U, 
                new Func<System.Int32, System.Int32, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.Numeric.Coerce), 
                new Func<System.Double, System.Double, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.Numeric.Coerce), 
                new Func<IronRuby.Runtime.ConversionStorage<System.Double>, IronRuby.Runtime.ConversionStorage<System.Double>, System.Object, System.Object, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.Numeric.Coerce)
            );
            
            DefineLibraryMethod(module, "div", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.ConversionStorage<System.Double>, System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Div)
            );
            
            DefineLibraryMethod(module, "divmod", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.ConversionStorage<System.Double>, System.Object, System.Object, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.Numeric.DivMod)
            );
            
            DefineLibraryMethod(module, "eql?", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, System.Object, System.Object, System.Boolean>(IronRuby.Builtins.Numeric.Eql)
            );
            
            DefineLibraryMethod(module, "floor", 0x51, 
                0x00008000U, 
                new Func<System.Double, System.Object>(IronRuby.Builtins.Numeric.Floor)
            );
            
            DefineLibraryMethod(module, "integer?", 0x51, 
                0x00000000U, 
                new Func<System.Object, System.Boolean>(IronRuby.Builtins.Numeric.IsInteger)
            );
            
            DefineLibraryMethod(module, "modulo", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Modulo)
            );
            
            DefineLibraryMethod(module, "nonzero?", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.UnaryOpStorage, System.Object, System.Object>(IronRuby.Builtins.Numeric.IsNonZero)
            );
            
            DefineLibraryMethod(module, "quo", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Quo)
            );
            
            DefineLibraryMethod(module, "remainder", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Remainder)
            );
            
            DefineLibraryMethod(module, "round", 0x51, 
                0x00008000U, 
                new Func<System.Double, System.Object>(IronRuby.Builtins.Numeric.Round)
            );
            
            DefineLibraryMethod(module, "step", 0x51, 
                0x00000000U, 0x00000000U, 0x00000000U, 0x00000000U, 
                new Func<IronRuby.Runtime.BlockParam, System.Int32, System.Int32, System.Object>(IronRuby.Builtins.Numeric.Step), 
                new Func<IronRuby.Runtime.BlockParam, System.Int32, System.Int32, System.Int32, System.Object>(IronRuby.Builtins.Numeric.Step), 
                new Func<IronRuby.Runtime.BlockParam, System.Double, System.Double, System.Double, System.Object>(IronRuby.Builtins.Numeric.Step), 
                new Func<IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.BinaryOpStorage, IronRuby.Runtime.ConversionStorage<System.Double>, IronRuby.Runtime.BlockParam, System.Object, System.Object, System.Object, System.Object>(IronRuby.Builtins.Numeric.Step)
            );
            
            DefineLibraryMethod(module, "to_int", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.UnaryOpStorage, System.Object, System.Object>(IronRuby.Builtins.Numeric.ToInt)
            );
            
            DefineLibraryMethod(module, "truncate", 0x51, 
                0x00008000U, 
                new Func<System.Double, System.Object>(IronRuby.Builtins.Numeric.Truncate)
            );
            
            DefineLibraryMethod(module, "zero?", 0x51, 
                0x00000000U, 
                new Func<IronRuby.Runtime.BinaryOpStorage, System.Object, System.Boolean>(IronRuby.Builtins.Numeric.IsZero)
            );
            
        }
        
BuiltinsLibraryInitializer