lib/s3/right_s3.rb in aws-1.11.9 vs lib/s3/right_s3.rb in aws-1.11.36
- old
+ new
@@ -462,11 +462,11 @@
end
# Retrieve object data and attributes from Amazon.
# Returns a +String+.
#
- def get(headers={})
- response = @bucket.s3.interface.get(@bucket.name, @name, headers)
+ def get(headers={}, &block)
+ response = @bucket.s3.interface.get(@bucket.name, @name, headers, &block)
@data = response[:object]
@headers, @meta_headers = self.class.split_meta(response[:headers])
refresh(false)
@data
end