C# Class IronRuby.Builtins.Proc

Inheritance: IDuplicable
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
BuildCall void
BuildInvoke void
IDuplicable object
Proc System.Linq.Expressions

Méthodes publiques

Méthode Description
Call ( Proc procArg ) : object
Call ( Proc procArg, object arg1 ) : object
Call ( Proc procArg, object arg1, object arg2 ) : object
Call ( Proc procArg, object arg1, object arg2, object arg3 ) : object
Call ( Proc procArg, object arg1, object arg2, object arg3, object arg4 ) : object
CallN ( Proc procArg, object args ) : object
Copy ( ) : Proc

Creates a copy of the proc that has the same target, context, self object as this instance. Doesn't copy instance data. Preserves the class of the Proc.

Create ( Proc proc ) : Proc

Creates a copy of the proc that has the same target, context and self object as this block.

Create ( RubyContext context, BlockCallTarget1 clrMethod ) : Proc
Create ( RubyContext context, BlockCallTarget2 clrMethod ) : Proc
Create ( RubyContext context, BlockCallTarget3 clrMethod ) : Proc
Create ( RubyContext context, int parameterCount, BlockCallTargetUnsplatN clrMethod ) : Proc
Create ( RubyContext context, int parameterCount, BlockSignatureAttributes signatureAttributes, Delegate clrMethod ) : Proc
CreateMethodInvoker ( IronRuby.Runtime.RubyScope scope, string methodName ) : Proc

Creates a proc that invokes a method of given name. Proc.new do |*args| raise ArgumentException if args.size == 0 obj.methodName(args.delete_at(0), args) end

CreateSimple ( RubyContext context, BlockCallTarget1 clrMethod ) : Proc
ToLambda ( RubyLambdaMethodInfo method ) : Proc

Creates a lambda Proc that has the same target, context and self object as this block. Doesn't preserve the class of the Proc.

ToLambdaMethodInfo ( Proc block, string definitionName, RubyMethodVisibility visibility, RubyModule owner ) : RubyLambdaMethodInfo
ToString ( ) : string

Méthodes protégées

Méthode Description
Proc ( Proc proc ) : System.Linq.Expressions

Private Methods

Méthode Description
BuildCall ( MetaObjectBuilder metaBuilder, Expression procExpression, Expression selfExpression, CallArguments args ) : void

From control flow perspective it "calls" the proc.

BuildInvoke ( MetaObjectBuilder metaBuilder, CallArguments args ) : void
IDuplicable ( RubyContext context, bool copySingletonMembers ) : object
Proc ( ProcKind kind, object self, IronRuby.Runtime.RubyScope scope, BlockDispatcher dispatcher ) : System.Linq.Expressions

Method Details

Call() public méthode

public Call ( Proc procArg ) : object
procArg Proc
Résultat object

Call() public méthode

public Call ( Proc procArg, object arg1 ) : object
procArg Proc
arg1 object
Résultat object

Call() public méthode

public Call ( Proc procArg, object arg1, object arg2 ) : object
procArg Proc
arg1 object
arg2 object
Résultat object

Call() public méthode

public Call ( Proc procArg, object arg1, object arg2, object arg3 ) : object
procArg Proc
arg1 object
arg2 object
arg3 object
Résultat object

Call() public méthode

public Call ( Proc procArg, object arg1, object arg2, object arg3, object arg4 ) : object
procArg Proc
arg1 object
arg2 object
arg3 object
arg4 object
Résultat object

CallN() public méthode

public CallN ( Proc procArg, object args ) : object
procArg Proc
args object
Résultat object

Copy() public méthode

Creates a copy of the proc that has the same target, context, self object as this instance. Doesn't copy instance data. Preserves the class of the Proc.
public Copy ( ) : Proc
Résultat Proc

Create() public méthode

Creates a copy of the proc that has the same target, context and self object as this block.
public Create ( Proc proc ) : Proc
proc Proc
Résultat Proc

Create() public static méthode

public static Create ( RubyContext context, BlockCallTarget1 clrMethod ) : Proc
context RubyContext
clrMethod BlockCallTarget1
Résultat Proc

Create() public static méthode

public static Create ( RubyContext context, BlockCallTarget2 clrMethod ) : Proc
context RubyContext
clrMethod BlockCallTarget2
Résultat Proc

Create() public static méthode

public static Create ( RubyContext context, BlockCallTarget3 clrMethod ) : Proc
context RubyContext
clrMethod BlockCallTarget3
Résultat Proc

Create() public static méthode

public static Create ( RubyContext context, int parameterCount, BlockCallTargetUnsplatN clrMethod ) : Proc
context RubyContext
parameterCount int
clrMethod BlockCallTargetUnsplatN
Résultat Proc

Create() public static méthode

public static Create ( RubyContext context, int parameterCount, BlockSignatureAttributes signatureAttributes, Delegate clrMethod ) : Proc
context RubyContext
parameterCount int
signatureAttributes BlockSignatureAttributes
clrMethod System.Delegate
Résultat Proc

CreateMethodInvoker() public static méthode

Creates a proc that invokes a method of given name. Proc.new do |*args| raise ArgumentException if args.size == 0 obj.methodName(args.delete_at(0), args) end
public static CreateMethodInvoker ( IronRuby.Runtime.RubyScope scope, string methodName ) : Proc
scope IronRuby.Runtime.RubyScope
methodName string
Résultat Proc

CreateSimple() public static méthode

public static CreateSimple ( RubyContext context, BlockCallTarget1 clrMethod ) : Proc
context RubyContext
clrMethod BlockCallTarget1
Résultat Proc

Proc() protected méthode

protected Proc ( Proc proc ) : System.Linq.Expressions
proc Proc
Résultat System.Linq.Expressions

ToLambda() public méthode

Creates a lambda Proc that has the same target, context and self object as this block. Doesn't preserve the class of the Proc.
public ToLambda ( RubyLambdaMethodInfo method ) : Proc
method IronRuby.Runtime.Calls.RubyLambdaMethodInfo
Résultat Proc

ToLambdaMethodInfo() public static méthode

public static ToLambdaMethodInfo ( Proc block, string definitionName, RubyMethodVisibility visibility, RubyModule owner ) : RubyLambdaMethodInfo
block Proc
definitionName string
visibility RubyMethodVisibility
owner RubyModule
Résultat IronRuby.Runtime.Calls.RubyLambdaMethodInfo

ToString() public méthode

public ToString ( ) : string
Résultat string