From: "Suraj N. Kurapati" Date: 2006-08-01T04:22:51+09:00 Subject: Re: [SoC][ANN] Ruby Reports 0.4.19 Released -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gregory Brown wrote: > I think for Data::Table, i will method_missing it to recognize > to_plugin_name methods, so that even user created formatting plugins > are recognized. Agreed. method_missing is certainly the best approach. def method_missing id, *args, &blk if id =~ /^as_(.*)$/ as $1.to_sym, *args, &blk end end -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEzlh7mV9O7RYnKMcRAkLLAJwLTNnij6YG9oXUtuQrvj0/vCUjewCaA54N YPlz15Ii6wk05Ogp2arGcSI= =n5Fd -----END PGP SIGNATURE-----