当前位置: 首页>>代码示例>>C#>>正文


C# IronRuby.DefineRuleGenerator方法代码示例

本文整理汇总了C#中IronRuby.DefineRuleGenerator方法的典型用法代码示例。如果您正苦于以下问题:C# IronRuby.DefineRuleGenerator方法的具体用法?C# IronRuby.DefineRuleGenerator怎么用?C# IronRuby.DefineRuleGenerator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IronRuby的用法示例。


在下文中一共展示了IronRuby.DefineRuleGenerator方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadException_Class

 private static void LoadException_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("exception", 0x61, IronRuby.Builtins.ExceptionOps.CreateException());
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:4,代码来源:Initializers.Generated.cs

示例2: LoadFile_Class

 private static void LoadFile_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineLibraryMethod("atime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.AccessTime)
     );
     
     module.DefineLibraryMethod("basename", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.Basename)
     );
     
     module.DefineLibraryMethod("blockdev?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsBlockDevice)
     );
     
     module.DefineLibraryMethod("chardev?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsCharDevice)
     );
     
     module.DefineLibraryMethod("chmod", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, System.Int32, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Chmod)
     );
     
     module.DefineLibraryMethod("ctime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.CreateTime)
     );
     
     module.DefineLibraryMethod("delete", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Delete), 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString[], System.Int32>(IronRuby.Builtins.RubyFileOps.Delete)
     );
     
     module.DefineLibraryMethod("directory?", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, System.Object, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsDirectory)
     );
     
     module.DefineLibraryMethod("dirname", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.DirName)
     );
     
     module.DefineLibraryMethod("executable?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsExecutable)
     );
     
     module.DefineLibraryMethod("executable_real?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsExecutable)
     );
     
     module.DefineLibraryMethod("exist?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.Exists)
     );
     
     module.DefineLibraryMethod("exists?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.Exists)
     );
     
     #if !SILVERLIGHT
     module.DefineLibraryMethod("expand_path", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.ExpandPath)
     );
     
     #endif
     module.DefineLibraryMethod("extname", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.GetExtension)
     );
     
     module.DefineLibraryMethod("file?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsAFile)
     );
     
     module.DefineLibraryMethod("fnmatch", 0x61, 
         new System.Func<System.Object, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Int32, System.Boolean>(IronRuby.Builtins.RubyFileOps.FnMatch)
     );
     
     module.DefineLibraryMethod("fnmatch?", 0x61, 
         new System.Func<System.Object, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Int32, System.Boolean>(IronRuby.Builtins.RubyFileOps.FnMatch)
     );
     
     module.DefineLibraryMethod("ftype", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.FileType)
     );
     
     module.DefineLibraryMethod("grpowned?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsGroupOwned)
     );
     
     module.DefineLibraryMethod("join", 0x61, 
         new System.Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, IronRuby.Builtins.RubyClass, System.Object[], IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.Join)
     );
     
     module.DefineLibraryMethod("lstat", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.IO.FileSystemInfo>(IronRuby.Builtins.RubyFileOps.Stat)
     );
     
     module.DefineLibraryMethod("mtime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.ModifiedTime)
     );
     
     module.DefineRuleGenerator("open", 0x61, IronRuby.Builtins.RubyFileOps.Open());
     
     module.DefineLibraryMethod("owned?", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.IsUserOwned)
//.........这里部分代码省略.........
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:101,代码来源:Initializers.Generated.cs

示例3: LoadClass_Instance

 private static void LoadClass_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.UndefineMethodNoEvent("append_features");
     module.UndefineMethodNoEvent("extend_object");
     module.UndefineMethodNoEvent("module_function");
     module.DefineRuleGenerator("allocate", 0x51, IronRuby.Builtins.ClassOps.GetInstanceAllocator());
     
     module.DefineLibraryMethod("inherited", 0x52, 
         new System.Action<IronRuby.Builtins.RubyClass, System.Object>(IronRuby.Builtins.ClassOps.Inherited)
     );
     
     module.DefineLibraryMethod("initialize", 0x52, 
         new System.Action<IronRuby.Runtime.BlockParam, IronRuby.Builtins.RubyClass, IronRuby.Builtins.RubyClass>(IronRuby.Builtins.ClassOps.Reinitialize)
     );
     
     module.DefineLibraryMethod("initialize_copy", 0x52, 
         new System.Action<IronRuby.Builtins.RubyClass, IronRuby.Builtins.RubyClass>(IronRuby.Builtins.ClassOps.InitializeCopy)
     );
     
     module.DefineRuleGenerator("new", 0x51, IronRuby.Builtins.ClassOps.GetInstanceConstructor());
     
     module.DefineLibraryMethod("superclass", 0x51, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.RubyClass>(IronRuby.Builtins.ClassOps.GetSuperclass)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:25,代码来源:Initializers.Generated.cs

示例4: LoadException_Instance

 private static void LoadException_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineLibraryMethod("backtrace", 0x51, 
         new System.Func<System.Exception, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.ExceptionOps.GetBacktrace)
     );
     
     module.DefineRuleGenerator("exception", 0x51, IronRuby.Builtins.ExceptionOps.GetException());
     
     module.DefineLibraryMethod("initialize", 0x52, 
         new System.Func<IronRuby.Runtime.RubyContext, System.Exception, System.Object, System.Exception>(IronRuby.Builtins.ExceptionOps.ReinitializeException)
     );
     
     module.DefineLibraryMethod("inspect", 0x51, 
         new System.Func<IronRuby.Runtime.UnaryOpStorage, IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, System.Exception, IronRuby.Builtins.MutableString>(IronRuby.Builtins.ExceptionOps.Inspect)
     );
     
     module.DefineLibraryMethod("message", 0x51, 
         new System.Func<System.Exception, System.Object>(IronRuby.Builtins.ExceptionOps.GetMessage)
     );
     
     module.DefineLibraryMethod("set_backtrace", 0x51, 
         new System.Func<System.Exception, IronRuby.Builtins.MutableString, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.ExceptionOps.SetBacktrace), 
         new System.Func<System.Exception, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.ExceptionOps.SetBacktrace)
     );
     
     module.DefineLibraryMethod("to_s", 0x51, 
         new System.Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, System.Exception, IronRuby.Builtins.MutableString>(IronRuby.Builtins.ExceptionOps.GetMessage)
     );
     
     module.DefineLibraryMethod("to_str", 0x51, 
         new System.Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, System.Exception, IronRuby.Builtins.MutableString>(IronRuby.Builtins.ExceptionOps.GetMessage)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:33,代码来源:Initializers.Generated.cs

示例5: LoadMicrosoft__Scripting__Actions__TypeGroup_Instance

 private static void LoadMicrosoft__Scripting__Actions__TypeGroup_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineLibraryMethod("[]", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, Microsoft.Scripting.Actions.TypeGroup, System.Object[], IronRuby.Builtins.RubyModule>(IronRuby.Builtins.TypeGroupOps.Of)
     );
     
     module.DefineLibraryMethod("each", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Runtime.BlockParam, Microsoft.Scripting.Actions.TypeGroup, System.Object>(IronRuby.Builtins.TypeGroupOps.EachType)
     );
     
     module.DefineLibraryMethod("name", 0x51, 
         new System.Func<Microsoft.Scripting.Actions.TypeGroup, IronRuby.Builtins.MutableString>(IronRuby.Builtins.TypeGroupOps.GetName)
     );
     
     module.DefineRuleGenerator("new", 0x51, IronRuby.Builtins.TypeGroupOps.GetInstanceConstructor());
     
     module.DefineLibraryMethod("of", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, Microsoft.Scripting.Actions.TypeGroup, System.Object[], IronRuby.Builtins.RubyModule>(IronRuby.Builtins.TypeGroupOps.Of)
     );
     
     module.DefineLibraryMethod("to_s", 0x51, 
         new System.Func<Microsoft.Scripting.Actions.TypeGroup, IronRuby.Builtins.MutableString>(IronRuby.Builtins.TypeGroupOps.GetName)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:24,代码来源:Initializers.Generated.cs

示例6: LoadRegexp_Class

 private static void LoadRegexp_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("compile", 0x61, IronRuby.Builtins.RegexpOps.Compile());
     
     module.DefineLibraryMethod("escape", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RegexpOps.Escape)
     );
     
     module.DefineLibraryMethod("last_match", 0x61, 
         new System.Func<IronRuby.Runtime.RubyScope, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MatchData>(IronRuby.Builtins.RegexpOps.LastMatch), 
         new System.Func<IronRuby.Runtime.RubyScope, IronRuby.Builtins.RubyClass, System.Int32, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RegexpOps.LastMatch)
     );
     
     module.DefineLibraryMethod("quote", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RegexpOps.Escape)
     );
     
     module.DefineLibraryMethod("union", 0x61, 
         new System.Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, IronRuby.Builtins.RubyClass, System.Object[], IronRuby.Builtins.RubyRegex>(IronRuby.Builtins.RegexpOps.Union)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:21,代码来源:Initializers.Generated.cs

示例7: LoadIO_Class

 private static void LoadIO_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("for_fd", 0x61, IronRuby.Builtins.RubyIOOps.ForFileDescriptor());
     
     module.DefineLibraryMethod("foreach", 0x61, 
         new System.Action<IronRuby.Runtime.BlockParam, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyIOOps.ForEach), 
         new System.Action<IronRuby.Runtime.BlockParam, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyIOOps.ForEach)
     );
     
     module.DefineRuleGenerator("open", 0x61, IronRuby.Builtins.RubyIOOps.Open());
     
     #if !SILVERLIGHT
     module.DefineLibraryMethod("popen", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Runtime.BlockParam, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Object>(IronRuby.Builtins.RubyIOOps.OpenPipe), 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.RubyIO>(IronRuby.Builtins.RubyIOOps.OpenPipe)
     );
     
     #endif
     module.DefineLibraryMethod("read", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyIOOps.ReadFile), 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Int32, System.Int32, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyIOOps.Read)
     );
     
     module.DefineLibraryMethod("readlines", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyIOOps.ReadLines), 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyIOOps.ReadLines)
     );
     
     module.DefineLibraryMethod("select", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, System.Object, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyIOOps.Select), 
         new System.Func<IronRuby.Runtime.RubyContext, System.Object, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, System.Int32, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyIOOps.Select), 
         new System.Func<IronRuby.Runtime.RubyContext, System.Object, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, IronRuby.Builtins.RubyArray, System.Double, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyIOOps.Select)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:34,代码来源:Initializers.Generated.cs

示例8: LoadMethod_Instance

 private static void LoadMethod_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("[]", 0x51, IronRuby.Builtins.MethodOps.Call());
     
     module.DefineLibraryMethod("==", 0x51, 
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.RubyMethod, System.Boolean>(IronRuby.Builtins.MethodOps.Equal), 
         new System.Func<IronRuby.Builtins.RubyMethod, System.Object, System.Boolean>(IronRuby.Builtins.MethodOps.Equal)
     );
     
     module.DefineLibraryMethod("arity", 0x51, 
         new System.Func<IronRuby.Builtins.RubyMethod, System.Int32>(IronRuby.Builtins.MethodOps.GetArity)
     );
     
     module.DefineRuleGenerator("call", 0x51, IronRuby.Builtins.MethodOps.Call());
     
     module.DefineLibraryMethod("clone", 0x51, 
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.RubyMethod>(IronRuby.Builtins.MethodOps.Clone)
     );
     
     module.DefineLibraryMethod("clr_members", 0x51, 
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.MethodOps.GetClrMembers)
     );
     
     module.DefineLibraryMethod("of", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyMethod, System.Object[], IronRuby.Builtins.RubyMethod>(IronRuby.Builtins.MethodOps.BindGenericParameters)
     );
     
     module.DefineLibraryMethod("overloads", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyMethod, System.Object[], IronRuby.Builtins.RubyMethod>(IronRuby.Builtins.MethodOps.GetOverloads)
     );
     
     module.DefineLibraryMethod("to_proc", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyMethod, IronRuby.Builtins.Proc>(IronRuby.Builtins.MethodOps.ToProc)
     );
     
     module.DefineLibraryMethod("to_s", 0x51, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyMethod, IronRuby.Builtins.MutableString>(IronRuby.Builtins.MethodOps.ToS)
     );
     
     module.DefineLibraryMethod("unbind", 0x51, 
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.UnboundMethod>(IronRuby.Builtins.MethodOps.Unbind)
     );
     
 }
开发者ID:MiguelMadero,项目名称:ironruby,代码行数:43,代码来源:Initializers.Generated.cs

示例9: LoadFile_Class

 private static void LoadFile_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     LoadFileTest_Class(module);
     module.DefineLibraryMethod("atime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.AccessTime)
     );
     
     module.DefineLibraryMethod("basename", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.Basename)
     );
     
     module.DefineLibraryMethod("chmod", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, System.Int32, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Chmod)
     );
     
     module.DefineLibraryMethod("chown", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, System.Int32, System.Int32, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.ChangeOwner), 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, System.Object, System.Object, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.ChangeOwner)
     );
     
     module.DefineLibraryMethod("ctime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.CreateTime)
     );
     
     module.DefineLibraryMethod("delete", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Delete), 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString[], System.Int32>(IronRuby.Builtins.RubyFileOps.Delete)
     );
     
     module.DefineLibraryMethod("dirname", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.DirName)
     );
     
     #if !SILVERLIGHT
     module.DefineLibraryMethod("expand_path", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.ExpandPath)
     );
     
     #endif
     module.DefineLibraryMethod("extname", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.GetExtension)
     );
     
     module.DefineLibraryMethod("fnmatch", 0x61, 
         new System.Func<System.Object, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Int32, System.Boolean>(IronRuby.Builtins.RubyFileOps.FnMatch)
     );
     
     module.DefineLibraryMethod("fnmatch?", 0x61, 
         new System.Func<System.Object, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Int32, System.Boolean>(IronRuby.Builtins.RubyFileOps.FnMatch)
     );
     
     module.DefineLibraryMethod("ftype", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.FileType)
     );
     
     module.DefineLibraryMethod("join", 0x61, 
         new System.Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, IronRuby.Builtins.RubyClass, System.Object[], IronRuby.Builtins.MutableString>(IronRuby.Builtins.RubyFileOps.Join)
     );
     
     module.DefineLibraryMethod("lstat", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.IO.FileSystemInfo>(IronRuby.Builtins.RubyFileOps.Stat)
     );
     
     module.DefineLibraryMethod("mtime", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.DateTime>(IronRuby.Builtins.RubyFileOps.ModifiedTime)
     );
     
     module.DefineRuleGenerator("open", 0x61, IronRuby.Builtins.RubyFileOps.Open());
     
     module.DefineLibraryMethod("readlink", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Boolean>(IronRuby.Builtins.RubyFileOps.Readlink)
     );
     
     module.DefineLibraryMethod("rename", 0x61, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Rename)
     );
     
     module.DefineLibraryMethod("split", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyFileOps.Split)
     );
     
     module.DefineLibraryMethod("stat", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.IO.FileSystemInfo>(IronRuby.Builtins.RubyFileOps.Stat)
     );
     
     #if !SILVERLIGHT
     module.DefineLibraryMethod("symlink", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Object>(IronRuby.Builtins.RubyFileOps.SymLink)
     );
     
     #endif
     module.DefineLibraryMethod("umask", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, System.Int32, System.Int32>(IronRuby.Builtins.RubyFileOps.GetUmask), 
         new System.Func<IronRuby.Builtins.RubyClass, System.Int32>(IronRuby.Builtins.RubyFileOps.GetUmask)
     );
     
     module.DefineLibraryMethod("unlink", 0x61, 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString, System.Int32>(IronRuby.Builtins.RubyFileOps.Delete), 
         new System.Func<IronRuby.Builtins.RubyClass, IronRuby.Builtins.MutableString[], System.Int32>(IronRuby.Builtins.RubyFileOps.Delete)
     );
     
//.........这里部分代码省略.........
开发者ID:nzm,项目名称:ironruby,代码行数:101,代码来源:Initializers.Generated.cs

示例10: LoadStringIO_Class

 private static void LoadStringIO_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("open", 0x21, IronRuby.StandardLibrary.StringIO.StringIO.Open());
     
 }
开发者ID:techarch,项目名称:ironruby,代码行数:4,代码来源:Initializers.Generated.cs

示例11: LoadBasicSocket_Class

 private static void LoadBasicSocket_Class(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineLibraryMethod("do_not_reverse_lookup", 0x21, 
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, System.Boolean>(IronRuby.StandardLibrary.Sockets.RubyBasicSocket.GetDoNotReverseLookup)
     );
     
     module.DefineLibraryMethod("do_not_reverse_lookup=", 0x21, 
         new System.Action<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyClass, System.Boolean>(IronRuby.StandardLibrary.Sockets.RubyBasicSocket.SetDoNotReverseLookup)
     );
     
     module.DefineRuleGenerator("for_fd", 0x21, IronRuby.StandardLibrary.Sockets.RubyBasicSocket.ForFileDescriptor());
     
 }
开发者ID:techarch,项目名称:ironruby,代码行数:12,代码来源:Initializers.Generated.cs

示例12: LoadMethod_Instance

 private void LoadMethod_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     
     module.DefineRuleGenerator("[]", 0x51, IronRuby.Builtins.MethodOps.Call());
     
     module.DefineLibraryMethod("==", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.RubyMethod, System.Boolean>(IronRuby.Builtins.MethodOps.Equal),
         new System.Func<IronRuby.Builtins.RubyMethod, System.Object, System.Boolean>(IronRuby.Builtins.MethodOps.Equal),
     });
     
     module.DefineLibraryMethod("arity", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Builtins.RubyMethod, System.Int32>(IronRuby.Builtins.MethodOps.GetArity),
     });
     
     module.DefineRuleGenerator("call", 0x51, IronRuby.Builtins.MethodOps.Call());
     
     module.DefineLibraryMethod("clone", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.RubyMethod>(IronRuby.Builtins.MethodOps.Clone),
     });
     
     module.DefineLibraryMethod("to_proc", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Runtime.RubyContext, IronRuby.Builtins.RubyMethod, IronRuby.Builtins.Proc>(IronRuby.Builtins.MethodOps.ToProc),
     });
     
     module.DefineLibraryMethod("to_s", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.MutableString>(IronRuby.Builtins.MethodOps.ToS),
     });
     
     module.DefineLibraryMethod("unbind", 0x51, new System.Delegate[] {
         new System.Func<IronRuby.Builtins.RubyMethod, IronRuby.Builtins.UnboundMethod>(IronRuby.Builtins.MethodOps.Unbind),
     });
     
 }
开发者ID:mscottford,项目名称:ironruby,代码行数:32,代码来源:Initializers.Generated.cs

示例13: LoadWin32API_Instance

 private static void LoadWin32API_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
     module.DefineRuleGenerator("call", 0x11, IronRuby.StandardLibrary.Win32API.Win32API.Call());
     
     module.DefineRuleGenerator("Call", 0x11, IronRuby.StandardLibrary.Win32API.Win32API.Call());
     
     module.DefineLibraryMethod("initialize", 0x12, 
         new Func<IronRuby.StandardLibrary.Win32API.Win32API, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, IronRuby.StandardLibrary.Win32API.Win32API>(IronRuby.StandardLibrary.Win32API.Win32API.Reinitialize), 
         new Func<IronRuby.Runtime.ConversionStorage<IronRuby.Builtins.MutableString>, IronRuby.StandardLibrary.Win32API.Win32API, IronRuby.Builtins.MutableString, IronRuby.Builtins.MutableString, System.Collections.IList, IronRuby.Builtins.MutableString, IronRuby.StandardLibrary.Win32API.Win32API>(IronRuby.StandardLibrary.Win32API.Win32API.Reinitialize)
     );
     
 }
开发者ID:gregmalcolm,项目名称:ironruby,代码行数:11,代码来源:Initializers.Generated.cs


注:本文中的IronRuby.DefineRuleGenerator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。