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 | 861219ce4a8c91a6d94c0d138c2f2bf2b3c2337e (patch) | |
tree | af62e80ee75bdbc02137390728ac6ebb2375231e /eval.c | |
parent | 0d3f9dbfe1ab1696d1c9b1ef46c9da4af786e629 (diff) |
fix doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 |