From: Kaspar Schiess Date: 2004-10-01T20:17:14+09:00 Subject: Re: irb: a great tool in it's own right -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 rcoder@gmail.com wrote: | Yup -- it's like a shell with (*gasp*) intelligent handling of | intermediate results like lists of filenames. At times, I've even | defined a 'method_missing' in my irb toplevel which just calls 'system' | to invoke a command, rather than method, which makes irb even more | shell-like. Of course, you still have to pass arguments to those | commands as an array of strings, but I've found that %w{ ... } works | well. Just in case anyone is really interested, the def is ~ def method_missing( method, *args ) ~ system method.to_s + " " + args.join(' ') ~ end and you could perhaps call ~ dir %w{ *.rb } ++ for the method missing comment ! - -- kaspar semantics & semiotics code manufacture www.tua.ch/ruby -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBXT6LFifl4CA0ImQRAnu6AJ0VTbEqWBuTT4RQ9C0jJn1olyLhhgCfQeUe SClEUPHO1hz0vL1YV/M6qlE= =9O4G -----END PGP SIGNATURE-----