Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4743 > unrolled thread
| Started by | 7stud -- <bbxx789_05ss@yahoo.com> |
|---|---|
| First post | 2011-05-18 16:10 -0500 |
| Last post | 2011-05-21 17:58 -0500 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.ruby
where is instance_eval() defined? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-18 16:10 -0500
Re: where is instance_eval() defined? Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-18 17:32 -0500
Re: where is instance_eval() defined? Su Zhang <zhangsu@live.com> - 2011-05-18 19:42 -0500
Re: where is instance_eval() defined? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-18 19:49 -0500
Re: where is instance_eval() defined? John Mair <jrmair@gmail.com> - 2011-05-21 17:58 -0500
| From | 7stud -- <bbxx789_05ss@yahoo.com> |
|---|---|
| Date | 2011-05-18 16:10 -0500 |
| Subject | where is instance_eval() defined? |
| Message-ID | <2cc9ff11bb5b55541bb3db755b6cf543@ruby-forum.com> |
Where in the hell is instance_eval() defined? In "The Ruby Programming Language", it says it's defined in Object, but the 1.9.2 docs don't list it in Object: http://www.ruby-doc.org/core/classes/Object.html Nor is it listed in BasicObjec, Kernel, Module, or Class: http://www.ruby-doc.org/core-1.9/classes/BasicObject.html http://www.ruby-doc.org/core/classes/Kernel.html http://ruby-doc.org/core/classes/Module.html http://www.ruby-doc.org/core/classes/Class.html -- Posted via http://www.ruby-forum.com/.
[toc] | [next] | [standalone]
| From | Phillip Gawlowski <cmdjackryan@googlemail.com> |
|---|---|
| Date | 2011-05-18 17:32 -0500 |
| Message-ID | <BANLkTi=DPJRn12CFXdRfgz740zLg1qguhg@mail.gmail.com> |
| In reply to | #4743 |
On Wed, May 18, 2011 at 11:10 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote: > Where in the hell is instance_eval() defined? In "The Ruby Programming > Language", it says it's defined in Object, but the 1.9.2 docs don't list > it in Object: irb --simple-prompt >> require "pp" >> pp Object.methods.sort -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.
[toc] | [prev] | [next] | [standalone]
| From | Su Zhang <zhangsu@live.com> |
|---|---|
| Date | 2011-05-18 19:42 -0500 |
| Message-ID | <1d5778483cf0f04be5d6b19d5fd0a45f@ruby-forum.com> |
| In reply to | #4743 |
7stud -- wrote in post #999537: > Nor is it listed in BasicObjec p RUBY_VERSION # => "1.9.2" p BasicObject.public_instance_methods.grep(/eval/) # => [:instance_eval] and in vm_eval.c: rb_define_method(rb_cBasicObject, "instance_eval", rb_obj_instance_eval, -1); -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | 7stud -- <bbxx789_05ss@yahoo.com> |
|---|---|
| Date | 2011-05-18 19:49 -0500 |
| Message-ID | <1b360c5ca16df94bc0554349a3a59dd0@ruby-forum.com> |
| In reply to | #4743 |
Thanks. Does anyone want to fix that in the 1.9.2 docs? Also, I can never find the methods() method anywhere. Module? BasicObject? -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | John Mair <jrmair@gmail.com> |
|---|---|
| Date | 2011-05-21 17:58 -0500 |
| Message-ID | <826bed4314dff033ec30512173f5737f@ruby-forum.com> |
| In reply to | #4743 |
In future do this:
method(:instance_eval).owner #=> BasicObject
--
Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web