/// <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; }
public static BlockParam/*!*/ CreateBfcForMethodProcCall(Proc/*!*/ proc, RubyLambdaMethodInfo/*!*/ method) { Assert.NotNull(proc, method); return new BlockParam(proc, BlockCallerKind.Call, false, method.DeclaringModule, method.DefinitionName); }