class Refile::FileDouble
Attributes
content_type[R]
original_filename[R]
Public Class Methods
new(data, name = nil, content_type: nil)
click to toggle source
# File spec/refile/spec_helper.rb, line 64 def initialize(data, name = nil, content_type: nil) @io = StringIO.new(data) @original_filename = name @content_type = content_type end
Public Instance Methods
close()
click to toggle source
# File spec/refile/spec_helper.rb, line 86 def close @io.close end
eof?()
click to toggle source
# File spec/refile/spec_helper.rb, line 82 def eof? @io.eof? end
read(*args)
click to toggle source
# File spec/refile/spec_helper.rb, line 70 def read(*args) @io.read(*args) end
rewind()
click to toggle source
# File spec/refile/spec_helper.rb, line 74 def rewind @io.rewind end
size()
click to toggle source
# File spec/refile/spec_helper.rb, line 78 def size @io.size end