lib/s3/bucket.rb
def exists?
      retrieve
      true
    rescue Error::NoSuchBucket
      false
    end
# Similar to retrieve, but catches S3::Error::NoSuchBucket
# exceptions and returns false instead.
Similar to retrieve, but catches S3::Error::NoSuchBucket
exceptions and returns false instead.
Similar to retrieve but catches S3 :: Error :: NoSuchBucket exceptions and returns false instead .
def exists?
      retrieve
      true
    rescue Error::NoSuchBucket
      false
    end
def exists? retrieve true rescue Error :: NoSuchBucket false end
Similar to retrieve, but catches S3::Error::NoSuchBucket
exceptions and returns false instead.
Similar to retrieve but catches S3 :: Error :: NoSuchBucket exceptions and returns false instead .