From: dblack@... Date: 2006-07-08T23:34:20+09:00 Subject: Re: About 1.9 #__method__ feature. Hi -- On Sat, 8 Jul 2006, ara.t.howard@noaa.gov wrote: > On Sat, 8 Jul 2006 transfire@gmail.com wrote: > >> object_id >> object_class >> object_send >> >> Then for the all methods that bypass access resitrictions: >> >> instance_send >> instance_eval >> instance_exec >> instance_variable_get >> instance_variable_set >> instance_variables >> >> That way it's consistant, intuitive, easy to use and easy to learn. >> >> The only exceptions is #instance_of? But that's moot if you ask me b/c >> it's safer to ask the class anyway. So preferably we would have >> Class#class_of?(obj) plus a word alias for Module#=== like >> Module#ancestor_of?(obj). > > why not simply > > send > send! > > eval > eval! > > exec > exec! > > etc. > > i like the idea - but those are long names! ;-) Maybe Sean was right that you and I are really saying the same thing in different ways :-) At least, we seem to have converged on "send!". David -- "To fully realize the potential of Rails, it's crucial that you take the time to fully understand Ruby--and with "Ruby for Rails" David has provided just what you need to help you achieve that goal." -- DAVID HEINEMEIER HANSSON, in the foreword to RUBY FOR RAILS. Complete foreword & sample chapters at http://www.manning.com/black!