From: Gennady Bystritsky Date: 2008-04-08T06:49:09+09:00 Subject: Re: Is possible to define various methods at same time? [Correction] > -----Original Message----- > From: Iñaki Baz Castillo [mailto:ibc@aliax.net] > Sent: Monday, April 07, 2008 2:41 PM > To: ruby-talk ML > Subject: Re: Is possible to define various methods at same > time? [Correction] > > El Lunes, 7 de Abril de 2008, Gennady Bystritsky escribió: > > def method_missing(name, *args) > > But is "method_missing" a especial keyword? If it's a normal > method name then > I will neet to call: > objetc.method_missing > that I don't want, I need using: > debug(...), warn(...)... > > Thanks. > > -- > Iñaki Baz Castillo > > method_missing(), if present, is automatically invoked by Ruby on an attempt to call a method not explicitly defined for an object. So you will be able to write objetc.debug(...), objetc.warn(...), etc. http://rubylearning.com/satishtalim/ruby_method_missing.html Gennady.