more generic ruby version
Correct implementation of Cucumber::Formatter::Interceptor::Pipe#respond_to?. Fixes #312