From: Marc Heiler Date: 2012-01-23T07:04:32+09:00 Subject: Extending when running IRB Hi, I run irb. Then I input something like: "ajklasfjlasfkjlafs" IRB then responds with this: NameError: undefined local variable or method `ajklasfjlasfkjlafs' for # from (irb):1 Which is correct behaviour. What I now want to do is do a specific action BEFORE this error happens. Specifically, I want to load a class there BEFORE the NameError is registered. That class will process the input further, and only if it can not act on that input, should it give control to NameError. (Otherwise, no NameError should be raised.) What would be ways to do this? I was thinking I could extend Object at runtime, if I would be using Irb, and load my class. -- Posted via http://www.ruby-forum.com/.