From: "David A. Black" Date: 2008-04-25T21:05:50+09:00 Subject: Re: "alias name objetc.method" not allowed? --1926193751-938572355-1209125150=:3493 Content-Type: MULTIPART/MIXED; BOUNDARY="1926193751-938572355-1209125150=:3493" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1926193751-938572355-1209125150=:3493 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Fri, 25 Apr 2008, I=C3=B1aki Baz Castillo wrote: > 2008/4/25, David A. Black : >> I think you want: >> >> def ob_hello >> object.hello >> end > > Yes, sure it works (and it that I'm using now), but since in fact is > no a new method but just an alias I'd prefer using "alias" > nomenclature... if it would be possible XD alias creates a new name for an existing method. It's not a general-purpose named wrapper around arbitrary code. That's what method definitions are for :-) David --=20 Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates! --1926193751-938572355-1209125150=:3493-- --1926193751-938572355-1209125150=:3493--