From: Aldric Giacomoni Date: 2008-11-19T06:31:26+09:00 Subject: Avoiding / handling a method_missing call I'm trying to retrieve some data from Active Directory (operatingsystem and operatingsystemservicepack). It so occurs that -sometimes- that data is nonexistent (Linux box, maybe)... I don't know how to catch that error (it gives me a method_missing when it fails) and make it fail gracefully, returning an empty string instead. What I've done so far is just copy the method_missing from the ldap.rb to my source code and added an if statement to return '' if the argument is one of the two mentioned above.. Is there a more elegant way? Thanks! What is the nature of conflict?