diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-09 01:04:46 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-09 01:04:46 +0000 |
commit | 27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f (patch) | |
tree | af62e80ee75bdbc02137390728ac6ebb2375231e /eval.c | |
parent | 94faf2cb81ca64615817255df4a022cb659d6875 (diff) | |
download | ruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.tar.gz ruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.tar.xz ruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.zip |
fix doc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1979,12 +1979,12 @@ specific_eval(int argc, VALUE *argv, VALUE klass, VALUE self) * parameters supply a filename and starting line number that are used * when reporting compilation errors. * - * class Klass + * class KlassWithSecret * def initialize * @secret = 99 * end * end - * k = Klass.new + * k = KlassWithSecret.new * k.instance_eval { @secret } #=> 99 */ @@ -2011,12 +2011,12 @@ rb_obj_instance_eval(int argc, VALUE *argv, VALUE self) * to _obj_ while the code is executing, giving the code access to * _obj_'s instance variables. Arguments are passed as block parameters. * - * class Klass + * class KlassWithSecret * def initialize * @secret = 99 * end * end - * k = Klass.new + * k = KlassWithSecret.new * k.instance_exec(5) {|x| @secret+x } #=> 104 */ @@ -2172,7 +2172,7 @@ rb_mod_protected(int argc, VALUE *argv, VALUE module) * def c() end * private :a * end - * Mod.private_instance_methods #=> ["a", "c"] + * Mod.private_instance_methods #=> [:a, :c] */ static VALUE |