From: Trans Date: 2007-01-05T22:52:02+09:00 Subject: Re: Pervasive Methods [was: Little Things] ara.t.howard@noaa.gov wrote: > On Fri, 5 Jan 2007, Trans wrote: > > > Or maybe > > > > obj!send message > > that's pretty good. i was leaning towards a module so we could just try to > write it as an extension now though... it's backwards but... imitation of implementation: module Kernel def send! obj @send_f ||= Functor.new{|op,*a| obj.send(op,*a)} end def class! obj obj.class end def id! obj obj.object_id end # ... end then: obj = "hello" obj!class #=> String obj = 1 obj!send + 2 #=> 3 T.