about summary refs log tree commit homepage
path: root/lib/mogilefs/mogilefs.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-11-07 09:33:12 +0000
committerEric Wong <normalperson@yhbt.net>2011-11-07 09:33:12 +0000
commitee85cf3816c795bf193e644f97da5274edbdf9c7 (patch)
treeb1b2cb48ef44ac9c56ca07df84fb30ccbbd4cba3 /lib/mogilefs/mogilefs.rb
parent61f9e531398aeaf617d038bea4494c143ee8b5af (diff)
downloadmogilefs-client-ee85cf3816c795bf193e644f97da5274edbdf9c7.tar.gz
The readpartial is not in the Rack spec for rack.input
objects, but something like IO#read is.
Diffstat (limited to 'lib/mogilefs/mogilefs.rb')
-rw-r--r--lib/mogilefs/mogilefs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index e62e19b..8663f51 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -129,8 +129,8 @@ class MogileFS::MogileFS < MogileFS::Client
 
   ##
   # Copies the contents of +file+ into +key+ in class +klass+.  +file+ can be
-  # either a path name (String or Pathname object) or an object that
-  # responds to #readpartial.  Returns size of +file+ stored
+  # either a path name (String or Pathname object) or an IO-like object that
+  # responds to #read or #readpartial.  Returns size of +file+ stored.
 
   def store_file(key, klass, file)
     raise MogileFS::ReadOnlyError if readonly?