From b070abfc2045a4484e7bce34172764bbce5d3ff1 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 18 Feb 2006 12:18:27 +0000 Subject: * eval.c (rb_obj_instance_eval): RDoc description updated. a patch from Ozgur Murat Homurlu . [ruby-core:07381] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 3f00a86024..82d8b8beea 100644 --- a/eval.c +++ b/eval.c @@ -6497,7 +6497,10 @@ specific_eval(int argc, VALUE *argv, VALUE klass, VALUE self) * instance variables. In the version of instance_eval * that takes a +String+, the optional second and third * parameters supply a filename and starting line number that are used - * when reporting compilation errors. + * when reporting compilation errors. Note that, if a Proc that is + * converted from a Method object is given as the block, + * instance_eval will not change the context of this + * block and it will be evaluated in Method object's original context. * * class Klass * def initialize -- cgit v1.2.3