From: Nit Khair Date: 2008-10-22T14:47:47+09:00 Subject: Should I use instance_eval or block.call I am writing a library that will be used by others. Have been reading a lot about procs/blocks etc, and the difference between block.call and instance_eval pointed out in some articles was the context they are executed in. So if I put instance_eval in my method, the user of my lib can call methods in a block without using an instance. Otherwise, he has to use the instance to call a method. That means that the user has to know whether I have used block.call in my source or instance_eval. Other than that, how do i decide which to use ? Are there any other pros and cons? -- Posted via http://www.ruby-forum.com/.