module RSpec::Matchers::Composable

def unreadable_io?(object)

Other tags:
    Api: - private
def unreadable_io?(object)
  return false unless IO === object
  object.each {} # STDOUT is enumerable but raises an error
  false
rescue IOError
  true
end