I am writing some tests for a ruby gem... How do I check to see if an object respond_to? MyObject#attr_reader :my_property but not MyObject#attr_writer :my_property or MyObject#my_property(value) # <= setter? Plenty of examples simply checking everything but. Any ideas?