Inheritance: IronRuby.Runtime.Calls.RubyMemberInfo
Exemplo n.º 1
0
 /// <summary>
 /// Creates a lambda Proc that has the same target, context and self object as this block.
 /// Doesn't preserve the class of the Proc.
 /// </summary>
 public Proc/*!*/ ToLambda(RubyLambdaMethodInfo method) {
     Proc result = new Proc(this);
     result.Kind = ProcKind.Lambda;
     result._method = method;
     return result;
 }
Exemplo n.º 2
0
 public static BlockParam/*!*/ CreateBfcForMethodProcCall(Proc/*!*/ proc, RubyLambdaMethodInfo/*!*/ method) {
     Assert.NotNull(proc, method);
     return new BlockParam(proc, BlockCallerKind.Call, false, method.DeclaringModule, method.DefinitionName);
 }