Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4750

Re: where is instance_eval() defined?

From Su Zhang <zhangsu@live.com>
Newsgroups comp.lang.ruby
Subject Re: where is instance_eval() defined?
Date 2011-05-18 19:42 -0500
Organization Service de news de lacave.net
Message-ID <1d5778483cf0f04be5d6b19d5fd0a45f@ruby-forum.com> (permalink)
References <2cc9ff11bb5b55541bb3db755b6cf543@ruby-forum.com>

Show all headers | View raw


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/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web